aboutsummaryrefslogtreecommitdiffstats
path: root/.bash_profile
diff options
context:
space:
mode:
authorMathias Bynens <mathias@qiwi.be>2013-03-26 09:03:44 +0100
committerMathias Bynens <mathias@qiwi.be>2013-03-26 09:07:39 +0100
commit89274254b53bc1ad4931d1ccc70bbca4aea4166a (patch)
treeaba703619fcfa06003f6392383ee6119f2a21d6d /.bash_profile
parent73a5833600fc567548f5f4cf907854915190eeba (diff)
downloaddotfiles-89274254b53bc1ad4931d1ccc70bbca4aea4166a.tar.gz
dotfiles-89274254b53bc1ad4931d1ccc70bbca4aea4166a.tar.bz2
dotfiles-89274254b53bc1ad4931d1ccc70bbca4aea4166a.zip
.bash_profile: Autocomplete Grunt commands
Ref. https://github.com/gruntjs/grunt-cli#shell-tab-auto-completion
Diffstat (limited to '.bash_profile')
-rw-r--r--.bash_profile3
1 files changed, 3 insertions, 0 deletions
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