Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@stefanschmidt
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefanschmidt/8921476 to your computer and use it in GitHub Desktop.
Save stefanschmidt/8921476 to your computer and use it in GitHub Desktop.
Workaround to disable tilde autocomplete in Bash on Debian GNU/Linux 6.0
# even when the readline variable expand-tilde is set to off ~ gets replaced with the users directory
# to fix this erroneous behaviour add this to the end of your .bashrc (or upgrade to wheezy)
# tilde expansion is not affected by this so the tilde will still get replaced upon execution
__expand_tilde_by_ref()
{
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment