add autosuggestions to zsh
This commit is contained in:
@@ -34,7 +34,7 @@
|
||||
enable = true;
|
||||
enableCompletion = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
autosuggestions.enable = false;
|
||||
autosuggestions.enable = true;
|
||||
histSize = 200000;
|
||||
histFile = "$HOME/.config/zsh/.zsh_history";
|
||||
setOptions = [
|
||||
@@ -50,6 +50,9 @@
|
||||
zstyle ':completion:*' menu select
|
||||
zmodload zsh/complist
|
||||
|
||||
# enable dotfiles in tab directory completion
|
||||
setopt globdots
|
||||
|
||||
fzf-history() {
|
||||
local selected
|
||||
selected=$(fc -l 1 | fzf --tac --no-sort | sed 's/^[ ]*[0-9]*[ ]*//')
|
||||
|
||||
Reference in New Issue
Block a user