diff options
| author | Mike Vink <ivi@vinkies.net> | 2024-07-15 10:54:56 +0200 |
|---|---|---|
| committer | Mike Vink <ivi@vinkies.net> | 2024-07-15 10:54:56 +0200 |
| commit | 38c087f5edef8e4b0aabf3667c150c628b1d9f45 (patch) | |
| tree | 7fcdf3432e0afe913a7e999d211a82071b5530f4 /profiles/core | |
| parent | 463a63896235cd7746041ba9561f94eb689fefca (diff) | |
update vm aarch
Diffstat (limited to 'profiles/core')
| -rw-r--r-- | profiles/core/home.nix | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/profiles/core/home.nix b/profiles/core/home.nix index 3a581eb..72f1822 100644 --- a/profiles/core/home.nix +++ b/profiles/core/home.nix @@ -124,17 +124,20 @@ programs = { zsh = { enable = true; + autosuggestion.enable = true; completionInit = '' - autoload -Uz +X compinit bashcompinit select-word-style select-word-style + zmodload zsh/complist + autoload -Uz +X compinit bashcompinit select-word-style select-word-style bash zstyle ':completion:*' menu select - zmodload zsh/complist _comp_options+=(globdots) # Include hidden files. compinit bashcompinit ''; initExtra = '' # Use vim keys in tab complete menu: + export ZLE_REMOVE_SUFFIX_CHARS=$' ,=\t\n;&|/@' + export ZSH_AUTOSUGGEST_STRATEGY=(history completion) bindkey -M menuselect 'h' vi-backward-char bindkey -M menuselect 'k' vi-up-line-or-history bindkey -M menuselect 'l' vi-forward-char @@ -154,6 +157,8 @@ } bindkey -s '^o' '^ulfcd\n' + export FZF_DEFAULT_OPTS='-m --bind ctrl-a:select-all,ctrl-d:deselect-all,ctrl-t:toggle-all' + fzf-tail () { fzf --tail 100000 --tac --no-sort --exact } @@ -197,7 +202,7 @@ esac } - export ZLE_REMOVE_SUFFIX_CHARS=$' \t\n;&|/@' + export ZLE_REMOVE_SUFFIX_CHARS=$' ,=\t\n;&|/@' export MANPAGER='nvim +Man!' export EDITOR="nvim" export TERMINAL="st" @@ -206,6 +211,8 @@ ( command -v kubectl ) &>/dev/null && eval "$(kubectl completion zsh)" ( command -v zoxide ) &>/dev/null && eval "$(zoxide init zsh)" ( command -v pioctl ) &>/dev/null && eval "$(_PIOCTL_COMPLETE=zsh_source pioctl)" + export PATH="''${KREW_ROOT:-$HOME/.krew}/bin:$PATH" + krew info stern && eval "$(kubectl stern --completion zsh)" # Workaround for completion here... ( command -v aws ) &>/dev/null && source /run/current-system/sw/share/zsh/site-functions/_aws |
