mirror of
https://github.com/arcan1s/dotfiles.git
synced 2025-07-15 06:45:47 +00:00
fix links because exception capturing is not allowed in exante
add highlighting add vimpager
This commit is contained in:
@ -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'
|
||||
|
@ -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%}"
|
||||
}
|
@ -1 +0,0 @@
|
||||
alias ssh-home="ssh -At repo 'ssh -A -p 5431 192.168.0.101'"
|
14
zsh/use-vimpager
Normal file
14
zsh/use-vimpager
Normal 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
4371
zsh/vimpager
Normal file → Executable file
File diff suppressed because it is too large
Load Diff
1
zsh/zsh-syntax-highlighting
Submodule
1
zsh/zsh-syntax-highlighting
Submodule
Submodule zsh/zsh-syntax-highlighting added at 57624bb9f6
Reference in New Issue
Block a user