From 376bbea08879577407824558889e68a4a04f6eab Mon Sep 17 00:00:00 2001 From: Chapman Pendery Date: Sat, 7 Oct 2023 21:18:44 -0700 Subject: [PATCH] fix: clear readline for bash Signed-off-by: Chapman Pendery --- shell/key-bindings.bash | 1 + 1 file changed, 1 insertion(+) diff --git a/shell/key-bindings.bash b/shell/key-bindings.bash index 4ff68da..a62d22a 100644 --- a/shell/key-bindings.bash +++ b/shell/key-bindings.bash @@ -1,6 +1,7 @@ __sa__() { sa -c "$READLINE_LINE" -s bash history -s $(sa --history) + READLINE_LINE= } bind -x '"\C-a": __sa__' \ No newline at end of file