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

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\]' \[\033[00;34m\]└╼ \[\033[00m\]'
PS1=$PS1n PS1=$PS1n
cd() {
if [ -f .bashcdout ]
then
source .bashcdout
fi
builtin cd "$@" || return
if [ -f .bashcd ]
then
source .bashcd
fi
}