Skip to content

Instantly share code, notes, and snippets.

@joetde
Last active August 29, 2015 14:27
Show Gist options
  • Save joetde/7d0fa7b78bc45b5e0ee8 to your computer and use it in GitHub Desktop.
Save joetde/7d0fa7b78bc45b5e0ee8 to your computer and use it in GitHub Desktop.
_cdp_complete()
{
local CDPATH=$(ls -d $PACKAGE_DIRECTORIES | tr -s [:space:] ':')
_cd
}
complete -F _cdp_complete -o nospace cdp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment