[shell] cleanup zshrc
This commit is contained in:
@@ -14,13 +14,10 @@ DIR="%{$fg[blue]%}%~"
|
|||||||
GIT="%{$fg[red]%}\$vcs_info_msg_0_"
|
GIT="%{$fg[red]%}\$vcs_info_msg_0_"
|
||||||
HOSTN="%{$fg[yellow]%}%m "
|
HOSTN="%{$fg[yellow]%}%m "
|
||||||
|
|
||||||
# BREAK=''
|
|
||||||
# [ $(tput cols) -lt 60 ] && BREAK=$'\n'
|
|
||||||
|
|
||||||
export PROMPT="${HOSTN}${DIR}${GIT} ${BREAK}${ICON}%{$reset_color%} "
|
export PROMPT="${HOSTN}${DIR}${GIT} ${BREAK}${ICON}%{$reset_color%} "
|
||||||
zstyle ':vcs_info:git:*' formats ' (%b )'
|
zstyle ':vcs_info:git:*' formats ' (%b )'
|
||||||
|
|
||||||
# show info in bar
|
# show info in title bar
|
||||||
case $TERM in
|
case $TERM in
|
||||||
(*xterm* | rxvt | alacritty)
|
(*xterm* | rxvt | alacritty)
|
||||||
# This is seen when the shell prompts for input.
|
# This is seen when the shell prompts for input.
|
||||||
@@ -34,9 +31,6 @@ case $TERM in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# ============================== Aliases
|
|
||||||
source ~/.shellrc.alias
|
|
||||||
|
|
||||||
# ============================== Completion
|
# ============================== Completion
|
||||||
unsetopt menu_complete # do not autoselect the first completion entry
|
unsetopt menu_complete # do not autoselect the first completion entry
|
||||||
unsetopt flowcontrol
|
unsetopt flowcontrol
|
||||||
@@ -226,8 +220,8 @@ zle -N fancy-ctrl-z
|
|||||||
bindkey '^Z' fancy-ctrl-z
|
bindkey '^Z' fancy-ctrl-z
|
||||||
|
|
||||||
# ============================== Source other definitions
|
# ============================== Source other definitions
|
||||||
if [ -f ~/.shellrc.local ]; then
|
[ -f ~/.shellrc.local ] && source ~/.shellrc.local
|
||||||
source ~/.shellrc.local
|
[ -f ~/.shellrc.alias ] && source ~/.shellrc.alias
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then . $HOME/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
|
# nix
|
||||||
|
if [ -e $HOME/.nix-profile/etc/profile.d/nix.sh ]; then . $HOME/.nix-profile/etc/profile.d/nix.sh; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user