Update PROJECT_NAME on cd

This commit is contained in:
2023-04-19 12:06:25 -05:00
parent b7e826b392
commit 9fb4d582ce
4 changed files with 13 additions and 7 deletions

View File

@@ -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