Browse Source

local*.sh added

master
Kolan Sh 2 years ago
parent
commit
68f9e10d9e
  1. 9
      README
  2. 1
      const.sh
  3. 2
      prompt.sh

9
README

@ -5,9 +5,14 @@
ZDOTDIR=~/.zsh
source $ZDOTDIR/constants.sh
[ -x $ZDOTDIR/const.sh ] && source $ZDOTDIR/const.sh
[ -x $ZDOTDIR/local_const.sh ] && source $ZDOTDIR/local_const.sh
for rc in $ZDOTDIR/*.sh
do
source $rc
[ -x $rc ] && source $rc
done
unset rc
[ -x $ZDOTDIR/local.sh ] && source $ZDOTDIR/local.sh
unset ZDOTDIR

1
constants.sh → const.sh

@ -45,3 +45,4 @@ elif [[ "linux" != "$TERM" && -f $HOME/.dircolors_256 ]]; then
fi
export COLORTERM=truecolor
HOST_COLOR=31m

2
prompt.sh

@ -11,5 +11,5 @@ zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'
zstyle ':vcs_info:*' enable svn hg git
zstyle ':vcs_info:*' disable-patterns "$HOME(/smb*|/.big/smb*)"
PROMPT=$'%B%{\e[0;36m%}┌─[%{\e[0;36m%}%n%{\e[0;36m%}@%{\e[0;32m%}%m%{\e[0;36m%} (%T)]──(%{\e[0;33m%}%~%{\e[0;36m%})\n└─[%{\e[0;39m%}%# %{\e[0;36m%}>%b '
PROMPT=$'%B%{\e[0;36m%}┌─[%{\e[0;36m%}%n%{\e[0;36m%}@%{\e[0;$HOST_COLOR%}%m%{\e[0;36m%} (%T)]──(%{\e[0;33m%}%~%{\e[0;36m%})\n└─[%{\e[0;39m%}%# %{\e[0;36m%}>%b '
RPROMPT=$'$(vcs_info_wrapper)'
Loading…
Cancel
Save