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