Skip to content

Instantly share code, notes, and snippets.

@nochmu
Last active January 11, 2019 21:20
Show Gist options
  • Save nochmu/18250ea4d76707a12c45c55d797fc39d to your computer and use it in GitHub Desktop.
Save nochmu/18250ea4d76707a12c45c55d797fc39d to your computer and use it in GitHub Desktop.
Bash 4.2: Restore the path completion
# /etc/bash_completion.d/disable
# Disables the new behaviorfor bash completion (>=4.2)
#
# $ ls $HOME/.bash<tab><tab>
#
# new behavior:
# $ ls \$HOME/.bash
#
# old behaivor:
# .bash_history .bash_logout .bash_profile .bashrc
complete -o default ls
complete -o default cd
complete -o default ln
complete -o default cp
complete -o default mv
complete -o default rm
complete -o default cat
complete -o default nano
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment