summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-06-04 13:52:50 +0100
committerAlan Pearce2014-06-04 13:52:50 +0100
commit63eb0e567afa15801f5f60ddf6e04a78bb565822 (patch)
tree46b6a767188cee90c93532e677b0b3e567e0ea9f
parent754a1cb21cdc2150d0bef4b88ec247af9be5e04f (diff)
downloadnixfiles-63eb0e567afa15801f5f60ddf6e04a78bb565822.tar.lz
nixfiles-63eb0e567afa15801f5f60ddf6e04a78bb565822.tar.zst
nixfiles-63eb0e567afa15801f5f60ddf6e04a78bb565822.zip
zsh: Alias composer to composer.phar if missing
-rwxr-xr-xtag-zsh/config/zsh/zshrc4
1 files changed, 4 insertions, 0 deletions
diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc
index 9f1f66fe..5c6b32ab 100755
--- a/tag-zsh/config/zsh/zshrc
+++ b/tag-zsh/config/zsh/zshrc
@@ -277,6 +277,10 @@ if [[ -e =gh ]]; then
 	compdef _hub gh
 fi
 
+if [[ -n $commands[composer.phar] && ! -n $commands[composer] ]]; then
+	alias composer="composer.phar"
+fi
+
 # Functions
 
 magit () {