From 3c96f8af47e57a9b354b16acf83894a255c0d1df Mon Sep 17 00:00:00 2001 From: Dale Shrauger Date: Tue, 24 Jan 2023 20:23:40 -0600 Subject: [PATCH] Add control-k clear end of line to .bashrc --- .bashrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.bashrc b/.bashrc index af9952a..b2067b6 100644 --- a/.bashrc +++ b/.bashrc @@ -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