Add control-k clear end of line to .bashrc
This commit is contained in:
3
.bashrc
3
.bashrc
@ -56,6 +56,9 @@ function parse_git_branch {
|
|||||||
#export PS1='\u@\h \[\033[1;33m\]\w \[\033[0m\]$(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\]$ '
|
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.
|
# Local customized path and environment settings, etc.
|
||||||
if [ -f ~/.bashrc.local ]; then
|
if [ -f ~/.bashrc.local ]; then
|
||||||
. ~/.bashrc.local
|
. ~/.bashrc.local
|
||||||
|
|||||||
Reference in New Issue
Block a user