From 63eb0e567afa15801f5f60ddf6e04a78bb565822 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 4 Jun 2014 13:52:50 +0100 Subject: zsh: Alias composer to composer.phar if missing --- tag-zsh/config/zsh/zshrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tag-zsh/config/zsh') diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc index 9f1f66f..5c6b32a 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 () { -- cgit 1.4.1