Skip to content

Instantly share code, notes, and snippets.

@adw0rd
Last active May 2, 2022 16:32
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 adw0rd/1899904 to your computer and use it in GitHub Desktop.
Save adw0rd/1899904 to your computer and use it in GitHub Desktop.
Bashrc tips and tricks
# make bash autocomplete with up arrow
bind '"\e[A":history-search-backward'
bind '"\e[B":history-search-forward'
alias cls="find . -name '*.pyc' -delete -print ; find -name '*~' -delete -print"
# git hightlight cmd line (and show branch name)
# export PS1='\u@\h\w$(__git_ps1 " @%s")$ '
export PS1='\u@\h\w$(__git_ps1 " git:(%s)")/$ '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment