Skip to content

Instantly share code, notes, and snippets.

@rafaelfoster
Last active September 11, 2019 14:27
Show Gist options
  • Save rafaelfoster/8804010 to your computer and use it in GitHub Desktop.
Save rafaelfoster/8804010 to your computer and use it in GitHub Desktop.
Some bash Trics
# Enable the PageUp and PageDown to search history commands
$EDITOR /etc/inputrc
"\e[5~": history-search-backward
"\e[6~": history-search-forward
# Enable the autocomplete using case INsentitive
echo 'set show-all-if-ambiguous on' >> ~/.inputrc
echo 'set completion-ignore-case on' >> ~/.inputrc
# When the skiping word doesn't work on Putty, this can help to add this functionality
$edit ~/.bashrc
#use ctl keys to move forward and back in words
bind '"\eOC":forward-word'
bind '"\eOD":backward-word'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment