Add .bashcd and .bashcdout hooks to cd
This commit is contained in:
parent
056b91da1d
commit
e345e74360
1 changed files with 12 additions and 0 deletions
12
bashrc
12
bashrc
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue