Skip to content

Instantly share code, notes, and snippets.

@wsgac
Created November 23, 2023 14:16
Show Gist options
  • Save wsgac/a6a3ce8a392a47da88bc8ad0233f9823 to your computer and use it in GitHub Desktop.
Save wsgac/a6a3ce8a392a47da88bc8ad0233f9823 to your computer and use it in GitHub Desktop.
Configure a rudimentary `dabbrev-expand`-like contextual completion inside ZSH
# Completion functionality a'la Emacs' dabbrev-expand
zstyle ':completion:history-words:*' list no
zstyle ':completion:history-words:*' remove_all_dups yes
zstyle ':completion:history-words:*' stop yes
zstyle ':completion:history-words:*' menu yes
bindkey "^[/" _history-complete-older
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment