From: Francois Fleuret Date: Fri, 2 Nov 2018 11:47:48 +0000 (+0200) Subject: Added a blank space before the bound commands to avoid having them in the shell history. X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=f1afef5c610bb77103a9b01362b9894b01e0a5ef;p=selector.git Added a blank space before the bound commands to avoid having them in the shell history. --- diff --git a/bash-selector.sh b/bash-selector.sh index 661d4f0..d338487 100755 --- a/bash-selector.sh +++ b/bash-selector.sh @@ -52,7 +52,7 @@ function selector-history () { export SELECTOR_CD_HISTORY -[[ "${SELECTOR_CD_HISTORY}" ]] || SELECTOR_CD_HISTORY=${HOME}/.selector-cd-history +[[ "${SELECTOR_CD_HISTORY}" ]] || SELECTOR_CD_HISTORY="${HOME}/.selector-cd-history" export SELECTOR_CD_HISTORY_SIZE @@ -116,12 +116,12 @@ if [[ "$1" ]]; then --hist) # M-r puts the selected history line in place of the current one - bind '"\C-[r":"\C-a\C-kselector-history\C-m"' + bind '"\C-[r":"\C-a\C-k selector-history\C-m"' ;; --cd) # M-c provides a dynamic list of directories to cd into - bind '"\C-[c":"\C-a\C-kselector-cd-search\C-m"' + bind '"\C-[c":"\C-a\C-k selector-cd-search\C-m"' ;; *)