summary refs log tree commit diff stats
path: root/tag-zsh/config/zsh/zshrc
diff options
context:
space:
mode:
authorAlan Pearce2016-09-29 09:32:46 +0200
committerAlan Pearce2016-09-29 09:32:46 +0200
commit77e71f8020c4dcbe29b0d1c7425e1ae5faa2a6a0 (patch)
treee6eb281250961dc06aaa542f007c31a67df46c9a /tag-zsh/config/zsh/zshrc
parent987c7b55294c59c289b2440ba4d4c33a8126402f (diff)
downloadnixfiles-77e71f8020c4dcbe29b0d1c7425e1ae5faa2a6a0.tar.lz
nixfiles-77e71f8020c4dcbe29b0d1c7425e1ae5faa2a6a0.tar.zst
nixfiles-77e71f8020c4dcbe29b0d1c7425e1ae5faa2a6a0.zip
zsh: Add "hub" aliases again
Diffstat (limited to 'tag-zsh/config/zsh/zshrc')
-rw-r--r--tag-zsh/config/zsh/zshrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc
index a133a7da..2a37b508 100644
--- a/tag-zsh/config/zsh/zshrc
+++ b/tag-zsh/config/zsh/zshrc
@@ -136,6 +136,13 @@ then
 	autoload -U compinit && compinit
 fi
 
+if [[ -n $commands[hub] ]]
+then
+	compdef _hub hub
+	alias git=hub
+	alias gh=hub
+fi
+
 if [[ -n $commands[lunchy] ]]
 then
 	LUNCHY_DIR=$(dirname $(gem which lunchy))/../extras