You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
2.2 KiB
74 lines
2.2 KiB
# Define colors |
|
red='\[\033[0;31m\]' |
|
RED='\[\033[1;31m\]' |
|
blue='\[\033[0;34m\]' |
|
BLUE='\[\033[1;34m\]' |
|
cyan='\[\033[0;36m\]' |
|
CYAN='\[\033[1;36m\]' |
|
yellow='\[\033[0;33m\]' |
|
YELLOW='\[\033[1;33m\]' |
|
green='\[\033[0;32m\]' |
|
GREEN='\[\033[1;32m\]' |
|
white='\[\033[0;37m\]' |
|
WHITE='\[\033[1;37m\]' |
|
NOCOL='\[\033[0m\]' # no color |
|
|
|
# http://vim.wikia.com/wiki/256_colors_in_vim |
|
#if [ -e /usr/share/terminfo/x/xterm+256color ]; then |
|
export TERM='xterm-256color' |
|
# else |
|
# export TERM='xterm-color' |
|
#fi |
|
|
|
export EDITOR=vim |
|
export VIEWER=vim |
|
export VISUAL=vim |
|
|
|
#shopt -s checkwinsize |
|
|
|
LINE_VERTICAL="\342\224\200" |
|
LINE_CORNER_1="\342\224\214" |
|
LINE_CORNER_2="\342\224\224" |
|
|
|
PS1=$green$LINE_CORNER_1$LINE_VERTICAL'('$RED'\u'$YELLOW'@'$CYAN'\h'$green')'$LINE_VERTICAL$LINE_VERTICAL'('$yellow'\w'$green')\n'$LINE_CORNER_2$LINE_VERTICAL$YELLOW'\$ '$NOCOL |
|
#PS1=$LINE_CORNER_1$LINE_VERTICAL'(''\u''@''\h'')'$LINE_VERTICAL$LINE_VERTICAL'(''\w'')\n'$LINE_CORNER_2$LINE_VERTICAL'\$ ' |
|
|
|
|
|
#date |
|
cd ~ |
|
# Aliases |
|
alias ..='cd ..' |
|
# alias rm='rm -i' |
|
# alias cp='cp -i' |
|
# alias mv='mv -i' |
|
alias ls='ls $LS_OPTIONS -G' |
|
alias ll='ls $LS_OPTIONS -l' |
|
alias l='ls $LS_OPTIONS -lA' |
|
alias weather='curl -4 wttr.in/Королёв?lang=ru' |
|
|
|
if command -v grc>/dev/null; then |
|
alias ping="grc --colour=auto ping" |
|
alias ls="grc --colour=auto ls" |
|
alias traceroute="grc --colour=auto traceroute" |
|
alias make="grc --colour=auto make" |
|
alias diff="grc --colour=auto diff" |
|
alias cvs="grc --colour=auto cvs" |
|
alias netstat="grc --colour=auto netstat" |
|
alias cat="grc cat" |
|
alias tail="grc tail" |
|
alias head="grc head" |
|
fi |
|
|
|
[[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \ |
|
source /usr/local/share/bash-completion/bash_completion.sh |
|
|
|
[[ $PS1 && -f /usr/share/git/completion/git-prompt.sh ]] && \ |
|
source /usr/share/git/completion/git-prompt.sh |
|
|
|
if command -v figlet>/dev/null; then |
|
hostname | figlet -w 100 |
|
fi |
|
|
|
if command -v neofetch>/dev/null; then |
|
neofetch |
|
fi
|
|
|