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

7
zsh.d/project_name.zsh Normal file
View File

@@ -0,0 +1,7 @@
_project_name_chpwd_hook() {
export PROJECT_NAME="${PWD##*/}"
}
chpwd_functions+=( _project_name_chpwd_hook )
_project_name_chpwd_hook