zsh:keys: Refactor and add comment
This commit is contained in:
@@ -85,12 +85,10 @@ zle -N _expandDots
|
|||||||
bindkey . _expandDots
|
bindkey . _expandDots
|
||||||
|
|
||||||
function ls-on-enter {
|
function ls-on-enter {
|
||||||
if [[ -z "$BUFFER" ]]; then
|
# Execute `ls` when enter is pressed without a command entered.
|
||||||
BUFFER=ls
|
[[ -n "$BUFFER" ]] || BUFFER=ls
|
||||||
zle accept-line
|
zle accept-line
|
||||||
else
|
|
||||||
zle accept-line
|
|
||||||
fi
|
|
||||||
# See fzf-hist below
|
# See fzf-hist below
|
||||||
FZF_HIST_WENT_UP=
|
FZF_HIST_WENT_UP=
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user