Last active
March 23, 2016 12:32
-
-
Save Xerkus/0ed725df3d3b5138e716 to your computer and use it in GitHub Desktop.
Bash completion from history using up and down arrows
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
export HISTSIZE="" | |
if [ "$PS1" ]; then | |
bind '"\e[A":history-search-backward' | |
bind '"\e[B":history-search-forward' | |
fi |
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
source /usr/share/git-core/contrib/completion/git-prompt.sh | |
export GIT_PS1_SHOWDIRTYSTATE=1 | |
if [ "$(type -t __git_ps1)" ]; then | |
PS1='[\[\e[38;2;255;100;0m\]\u@\h\[\e[m\] \W\[\e[38;2;20;207;245m\]$(__git_ps1 " (%s)")\[\e[m\]]\$ ' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
drop into /etc/profile.d