zsh:keys:cmd-on-enter: Don't place cmds in history

This commit is contained in:
2022-12-29 18:09:20 +01:00
parent 8da38e9224
commit 5c1b67ddfc

View File

@@ -179,7 +179,7 @@ REQUIREMENTS_CMDS_ON_ENTER=(true "git rev-parse")
function cmd-on-enter {
if [[ -z $BUFFER ]]; then
# 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
local idx=$cmd_on_enter_idx