Browse Source

local*.sh added

master
Kolan Sh 2 years ago
parent
commit
01875a5ff5
  1. 10
      README
  2. 1
      const.sh
  3. 2
      prompt.sh

10
README

@ -5,12 +5,18 @@
# Create ~/.bashrc file with contents below.
#!/bin/bash
# ~/.bashrc
BDOTDIR=~/.bash
source $BDOTDIR/constants.sh
[ -x $BDOTDIR/const.sh ] && source $BDOTDIR/const.sh
[ -x $BDOTDIR/local_const.sh ] && source $BDOTDIR/local_const.sh
for rc in $BDOTDIR/*.sh
do
source $rc
[ -x $rc ] && source $rc
done
unset rc
[ -x $BDOTDIR/local.sh ] && source $BDOTDIR/local.sh
unset BDOTDIR

1
constants.sh → const.sh

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

2
prompt.sh

@ -1,4 +1,4 @@
export PS1="\[\033[01;36m\]\u@\[\033[01;35m\]\h\[\033[01;34m\] \w\\
export PS1="\[\033[01;36m\]\u@\[\033[01;$HOST_COLOR\]\h\[\033[01;34m\] \w\\
\[\033[01;30m\]\$(__git_ps1)\$(__hg_ps1) \\
\[\033[01;36m\]\$\[\033[00m\] \\
"
Loading…
Cancel
Save