Add .bashcd and .bashcdout hooks to cd

This commit is contained in:
Talia 2018-12-23 21:40:14 +01:00
parent 056b91da1d
commit e345e74360
1 changed files with 12 additions and 0 deletions

12
bashrc
View File

@ -114,3 +114,15 @@ PS1c='\[\033[00;34m\]┌─╼ \[\033[00;33m\]\$ \[\033[01;35m\]\u`git__prompt`
\[\033[00;34m\]└╼ \[\033[00m\]'
PS1=$PS1n
cd() {
if [ -f .bashcdout ]
then
source .bashcdout
fi
builtin cd "$@" || return
if [ -f .bashcd ]
then
source .bashcd
fi
}