fix links because exception capturing is not allowed in exante

add highlighting
add vimpager
This commit is contained in:
arcan1s
2015-10-26 05:29:01 +03:00
parent a44024a09d
commit cc8f5e5759
13 changed files with 4415 additions and 186 deletions

1
zsh-server/highlighting Symbolic link
View File

@ -0,0 +1 @@
../zsh/highlighting

View File

@ -1 +0,0 @@
../zsh/prompt_server

27
zsh-server/prompt_server Normal file
View File

@ -0,0 +1,27 @@
# PROMPT && RPROMPT
if [[ $EUID == 0 ]]; then
# [root@host dir]#
PROMPT="%{$fg_bold[white]%}[%{$reset_color%}\
%{$fg_bold[red]%}%n%{$reset_color%}\
%{$fg_bold[white]%}@%{$reset_color%}\
%{$fg_no_bold[blue]%}%m %{$reset_color%}\
%{$fg_bold[yellow]%}%1/%{$reset_color%}\
%{$fg_bold[white]%}]# %{$reset_color%}"
else
# [user@host dir]$
PROMPT="%{$fg_bold[white]%}[%{$reset_color%}\
%{$fg_bold[green]%}%n%{$reset_color%}\
%{$fg_bold[white]%}@%{$reset_color%}\
%{$fg_no_bold[blue]%}%m %{$reset_color%}\
%{$fg_bold[yellow]%}%1/%{$reset_color%}\
%{$fg_bold[white]%}]$ %{$reset_color%}"
fi
precmd() {
# last command
returncode="%(?.%{$fg[green]%}.%{$fg[red]%})%?%{$resetcolor%}"
RPROMPT="%{$fg_bold[white]%}[%{$reset_color%}\
%{$fg_bold[cyan]%}%T%{$reset_color%}\
%{$fg_bold[white]%}][%{$reset_color%}"\
${returncode}\
"%{$fg_bold[white]%}]%{$reset_color%}"
}

1
zsh-server/use-vimpager Symbolic link
View File

@ -0,0 +1 @@
../zsh/use-vimpager

1
zsh-server/vimpager Symbolic link
View File

@ -0,0 +1 @@
../zsh/vimpager

View File

@ -0,0 +1 @@
../zsh/zsh-syntax-highlighting