zsh:keys:cmd-on-enter: Don't place cmds in history
This commit is contained in:
@@ -179,7 +179,7 @@ REQUIREMENTS_CMDS_ON_ENTER=(true "git rev-parse")
|
|||||||
function cmd-on-enter {
|
function cmd-on-enter {
|
||||||
if [[ -z $BUFFER ]]; then
|
if [[ -z $BUFFER ]]; then
|
||||||
# Overwrite BUFFER and default to ll
|
# Overwrite BUFFER and default to ll
|
||||||
BUFFER="${CMDS_ON_ENTER[${cmd_on_enter_idx:=1}]}"
|
BUFFER=" ${CMDS_ON_ENTER[${cmd_on_enter_idx:=1}]}"
|
||||||
|
|
||||||
# Cycle through ll and git status
|
# Cycle through ll and git status
|
||||||
local idx=$cmd_on_enter_idx
|
local idx=$cmd_on_enter_idx
|
||||||
|
|||||||
Reference in New Issue
Block a user