Last active
May 2, 2022 16:32
-
-
Save adw0rd/1899904 to your computer and use it in GitHub Desktop.
Bashrc tips and tricks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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