Add control-k clear end of line to .bashrc

This commit is contained in:
2023-01-24 20:23:40 -06:00
parent d3e2a923ad
commit 3c96f8af47

View File

@ -56,6 +56,9 @@ function parse_git_branch {
#export PS1='\u@\h \[\033[1;33m\]\w \[\033[0m\]$(parse_git_branch)$ '
export PS1='\[\033[1;31m\]\u@\h \[\033[1;34m\]\w \[\033[1;32m\]$(parse_git_branch)\[\033[0m\]$ '
# bind commands
bind '"\C-k"':kill-line # clear to end of line
# Local customized path and environment settings, etc.
if [ -f ~/.bashrc.local ]; then
. ~/.bashrc.local