|
|
@ -67,7 +67,7 @@ if [[ "$KEYMAP" == (emacs|) ]]; then |
|
|
|
bindkey "${keys[Control]}x${keys[Control]}e" edit-command-line |
|
|
|
bindkey "${keys[Control]}x${keys[Control]}e" edit-command-line |
|
|
|
|
|
|
|
|
|
|
|
# Expand .... to ../.. |
|
|
|
# Expand .... to ../.. |
|
|
|
if ! check-bool "$DISABLE_DOT_EXPANSION"; then |
|
|
|
if check-bool "$DOT_EXPANSION"; then |
|
|
|
bindkey "." expand-dot-to-parent-directory-path |
|
|
|
bindkey "." expand-dot-to-parent-directory-path |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
@ -132,7 +132,7 @@ elif [[ "$KEYMAP" == 'vi' ]]; then |
|
|
|
bindkey -M vicmd "${keys[Control]}r" redo |
|
|
|
bindkey -M vicmd "${keys[Control]}r" redo |
|
|
|
|
|
|
|
|
|
|
|
# Expand .... to ../.. |
|
|
|
# Expand .... to ../.. |
|
|
|
if ! check-bool "$DISABLE_DOT_EXPANSION"; then |
|
|
|
if check-bool "$DOT_EXPANSION"; then |
|
|
|
bindkey -M viins "." expand-dot-to-parent-directory-path |
|
|
|
bindkey -M viins "." expand-dot-to-parent-directory-path |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
@ -233,7 +233,7 @@ bindkey '^[[Z' reverse-menu-complete |
|
|
|
bindkey "${keys[Control]}i" expand-or-complete-prefix |
|
|
|
bindkey "${keys[Control]}i" expand-or-complete-prefix |
|
|
|
|
|
|
|
|
|
|
|
# Convert .... to ../.. automatically. |
|
|
|
# Convert .... to ../.. automatically. |
|
|
|
if ! check-bool "$DISABLE_DOT_EXPANSION"; then |
|
|
|
if check-bool "$DOT_EXPANSION"; then |
|
|
|
function expand-dot-to-parent-directory-path() { |
|
|
|
function expand-dot-to-parent-directory-path() { |
|
|
|
if [[ $LBUFFER = *.. ]]; then |
|
|
|
if [[ $LBUFFER = *.. ]]; then |
|
|
|
LBUFFER+=/.. |
|
|
|
LBUFFER+=/.. |
|
|
@ -247,7 +247,7 @@ if ! check-bool "$DISABLE_DOT_EXPANSION"; then |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
|
|
|
|
# Display an indicator when completing. |
|
|
|
# Display an indicator when completing. |
|
|
|
if ! check-bool "$DISABLE_COMPLETION_INDICATOR"; then |
|
|
|
if check-bool "$COMPLETION_INDICATOR"; then |
|
|
|
function expand-or-complete-prefix-with-indicator() { |
|
|
|
function expand-or-complete-prefix-with-indicator() { |
|
|
|
echo -n "\e[31m...\e[0m" |
|
|
|
echo -n "\e[31m...\e[0m" |
|
|
|
zle expand-or-complete-prefix |
|
|
|
zle expand-or-complete-prefix |
|
|
|