pgup and colors

This commit is contained in:
notanamber 2020-11-22 11:10:34 +00:00
parent 68c6fe6acf
commit eec2108ce7
1 changed files with 5 additions and 0 deletions

View File

@ -4,6 +4,9 @@
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# pgup binded to history search
bind '"\e[A": history-search-backward'
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignoreboth
@ -54,6 +57,8 @@ fi
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
# user: cyan
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;36m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi