Update PROJECT_NAME on cd
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
# git
|
||||
if (( $+commands[git] )); then
|
||||
git_chpwd_hook() {
|
||||
_git_chpwd_hook() {
|
||||
if [[ -d ".git" ]]; then
|
||||
git status
|
||||
fi
|
||||
}
|
||||
|
||||
chpwd_functions+=( git_chpwd_hook )
|
||||
chpwd_functions+=( _git_chpwd_hook )
|
||||
|
||||
git_chpwd_hook
|
||||
_git_chpwd_hook
|
||||
fi
|
||||
|
Reference in New Issue
Block a user