Bring back some old autocomplete features
This commit is contained in:
parent
4594ce53a2
commit
d2ccc615e5
@ -6,6 +6,7 @@ export EWCONFIG_ROOT="$HOME/.config/ewconfig"
|
|||||||
. $EWCONFIG_ROOT/configs/zsh/prompt.sh
|
. $EWCONFIG_ROOT/configs/zsh/prompt.sh
|
||||||
. $EWCONFIG_ROOT/configs/zsh/macros.sh
|
. $EWCONFIG_ROOT/configs/zsh/macros.sh
|
||||||
. $EWCONFIG_ROOT/configs/zsh/keybinds.sh
|
. $EWCONFIG_ROOT/configs/zsh/keybinds.sh
|
||||||
|
. $EWCONFIG_ROOT/configs/zsh/autocomplete.sh
|
||||||
|
|
||||||
# Load per-host configuration
|
# Load per-host configuration
|
||||||
if [ -f $EWCONFIG_ROOT/configs/zsh/by_host/$HOSTNAME.sh ]; then
|
if [ -f $EWCONFIG_ROOT/configs/zsh/by_host/$HOSTNAME.sh ]; then
|
||||||
|
17
configs/zsh/autocomplete.sh
Normal file
17
configs/zsh/autocomplete.sh
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
|
||||||
|
# Handles case-insensitive completion
|
||||||
|
autoload -Uz compinit && compinit
|
||||||
|
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
|
||||||
|
|
||||||
|
# Configure command history
|
||||||
|
HISTFILE=~/.histfile
|
||||||
|
HISTSIZE=1000
|
||||||
|
SAVEHIST=1000
|
||||||
|
|
||||||
|
# Allow up arrow to be used to go back in history based on current line contents
|
||||||
|
autoload -U up-line-or-beginning-search
|
||||||
|
autoload -U down-line-or-beginning-search
|
||||||
|
zle -N up-line-or-beginning-search
|
||||||
|
zle -N down-line-or-beginning-search
|
||||||
|
bindkey "^[[A" up-line-or-beginning-search # Up
|
||||||
|
bindkey "^[[B" down-line-or-beginning-search # Down
|
Loading…
x
Reference in New Issue
Block a user