zshrc

1) install zsh

2) touch > ~/.zshrc

3) nano /etc/zsh/zshrc

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
PATH="${PATH}:/usr/local/cuda/bin:/usr/local/bin:"
export EDITOR=/usr/bin/nano
autoload colors
colors
autoload -U compinit
compinit
setopt autocd
setopt No_Beep
setopt APPEND_HISTORY
setopt HIST_IGNORE_SPACE
setopt HIST_REDUCE_BLANKS
setopt HIST_IGNORE_ALL_DUPS
setopt histfindnodups
HISTFILE=~/.zhistory
SAVEHIST=5000
HISTSIZE=5000
autoload -U predict-on
zle -N predict-on
zle -N predict-off
bindkey "^X^Z" predict-on
bindkey "^Z" predict-off
bindkey "\e[6~" history-search-forward
bindkey "\e[5~" history-search-backward
alias man="LC_ALL="ru_RU.UTF-8" man"
alias mc="/bin/mc -S nicedark "
alias la="ls -lahFG  --color=auto"
alias grep="grep --color=auto -i"
manpath="/usr/share/man:/usr/local/man:/usr/X11R6/man"
export MANPATH
zmodload zsh/complist
alias get_white_ip="wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e 's/<.*$//'"
alias aws="ssh -i /home/alter/.ssh/alter.pem alter@ec2-107-22-115-89.compute-1.amazonaws.com"
if [[ $EUID == 0 ]]
then
PROMPT=$'%{\e[1;31m%}%n@awork %{\e[1;34m%}%~ #%{\e[0m%} '
else
PROMPT=$'%{\e[1;32m%}%n@awork %{\e[1;34m%}%~ $%{\e[0m%} '
fi
RPROMPT=$'%{\e[1;34m%}%T%{\e[0m%}'

if [[ $EUID == 0 ]]
then
PROMPT2=$'Закрой ковычки# '
else
PROMPT2=$'Закрой ковычки$ '
fi

4) vipw

And edit the line with your users to be more precise then change his shell If you do not know how, refer to the documentation for vim

5) Relogin and enjoy