Skip to content

Instantly share code, notes, and snippets.

@damiankloip
Created November 23, 2015 10:13
Show Gist options
  • Save damiankloip/a0539a6278b6e12cd9ea to your computer and use it in GitHub Desktop.
Save damiankloip/a0539a6278b6e12cd9ea to your computer and use it in GitHub Desktop.
Fish Drush completion
# Drush autocompletion
#
# Place this in your ~/.config/fish/completions/ directory, or in the
# /etc/fish/completions directory to make it available for all users.
function __complete_drush
drush --early=includes/complete.inc --verbose=0 (commandline -cpo) (commandline -t 2> /dev/null) | cut -d " " -f 1
end
complete -x -c drush -d "Drush" -a "(__complete_drush)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment