Move zsh and aliases to conf.d style configs
This commit is contained in:
12
zsh.d/gh.zsh
Normal file
12
zsh.d/gh.zsh
Normal file
@@ -0,0 +1,12 @@
|
||||
# gh
|
||||
if (( $+commands[gh] )); then
|
||||
gh_chpwd_hook() {
|
||||
if [[ -d ".github" ]]; then
|
||||
gh pr list
|
||||
fi
|
||||
}
|
||||
|
||||
chpwd_functions+=( gh_chpwd_hook )
|
||||
|
||||
gh_chpwd_hook
|
||||
fi
|
Reference in New Issue
Block a user