From 89274254b53bc1ad4931d1ccc70bbca4aea4166a Mon Sep 17 00:00:00 2001 From: Mathias Bynens Date: Tue, 26 Mar 2013 09:03:44 +0100 Subject: .bash_profile: Autocomplete Grunt commands Ref. https://github.com/gruntjs/grunt-cli#shell-tab-auto-completion --- .bash_profile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bash_profile b/.bash_profile index 8124c9a..3bf87ae 100644 --- a/.bash_profile +++ b/.bash_profile @@ -35,5 +35,8 @@ complete -W "NSGlobalDomain" defaults # Add `killall` tab completion for common apps complete -o "nospace" -W "Contacts Calendar Dock Finder Mail Safari iTunes SystemUIServer Terminal Twitter" killall +# Autocomplete Grunt commands +which grunt > /dev/null && eval "$(grunt --completion=bash)" + # If possible, add tab completion for many more commands [ -f /etc/bash_completion ] && source /etc/bash_completion -- cgit v1.2.3