all repos — nixfiles @ 63eb0e567afa15801f5f60ddf6e04a78bb565822

System and user configuration, managed by nix and home-manager

zsh: Alias composer to composer.phar if missing
Alan Pearce alan@alanpearce.co.uk
Wed, 04 Jun 2014 13:52:50 +0100
commit

63eb0e567afa15801f5f60ddf6e04a78bb565822

parent

754a1cb21cdc2150d0bef4b88ec247af9be5e04f

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M tag-zsh/config/zsh/zshrctag-zsh/config/zsh/zshrc
@@ -277,6 +277,10 @@ autoload -U _hub 	compdef _hub gh
 fi
 
+if [[ -n $commands[composer.phar] && ! -n $commands[composer] ]]; then
+	alias composer="composer.phar"
+fi
+
 # Functions
 
 magit () {