From 68f9e10d9ea165eddbbac566e9b4e3a2345bf42e Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Mon, 17 Jun 2019 12:11:01 +0300 Subject: [PATCH] local*.sh added --- README | 9 +++++++-- constants.sh => const.sh | 1 + prompt.sh | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) rename constants.sh => const.sh (98%) diff --git a/README b/README index 6d89fea..e400b23 100644 --- a/README +++ b/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 diff --git a/constants.sh b/const.sh similarity index 98% rename from constants.sh rename to const.sh index 9d3663e..21454cc 100755 --- a/constants.sh +++ b/const.sh @@ -45,3 +45,4 @@ elif [[ "linux" != "$TERM" && -f $HOME/.dircolors_256 ]]; then fi export COLORTERM=truecolor +HOST_COLOR=31m diff --git a/prompt.sh b/prompt.sh index 7d56537..7614c42 100755 --- a/prompt.sh +++ b/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)'