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

View File

@ -1,5 +1,9 @@
# highlighting
source "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
if [[ -a "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" ]]; then
source "/usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
else
source "$HOME/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"
fi
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern)
# brackets
ZSH_HIGHLIGHT_STYLES[bracket-level-1]='fg=blue,bold'

View File

@ -1,27 +0,0 @@
# 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%}"
}

View File

@ -1 +0,0 @@
alias ssh-home="ssh -At repo 'ssh -A -p 5431 192.168.0.101'"

14
zsh/use-vimpager Normal file
View File

@ -0,0 +1,14 @@
# use vimcat instead of cat
# till vimpager doesn't use pipe disable it
#alias cat='vimcat'
# use vimpager instead of less
# find vimpager
if which vimpager &> /dev/null; then
export PAGER="vimpager"
else
export PAGER="$HOME/.zsh/vimpager"
fi
alias less="$PAGER"
alias zless="$PAGER"

4371
zsh/vimpager Normal file → Executable file

File diff suppressed because it is too large Load Diff

Submodule zsh/zsh-syntax-highlighting added at 57624bb9f6