diff options
| -rw-r--r-- | machines/vm-aarch64.nix | 6 | ||||
| -rw-r--r-- | profiles/core/home.nix | 13 | ||||
| -rw-r--r-- | profiles/graphical/suckless.nix | 2 |
3 files changed, 18 insertions, 3 deletions
diff --git a/machines/vm-aarch64.nix b/machines/vm-aarch64.nix index b40f811..17e6004 100644 --- a/machines/vm-aarch64.nix +++ b/machines/vm-aarch64.nix @@ -7,6 +7,7 @@ virtualisation.vmware.guest.enable = true; virtualisation.docker.enable = true; networking.hostName = "vm-aarch64"; + programs.nix-ld.enable = true; hm.xsession.initExtra = '' ${pkgs.xorg.xset}/bin/xset r rate 230 30 @@ -22,6 +23,11 @@ (google-cloud-sdk.withExtraComponents (with google-cloud-sdk.components; [ gke-gcloud-auth-plugin ])) + k9s + kubectl + krew + kubelogin + just ]; services.pcscd.enable = true; 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 diff --git a/profiles/graphical/suckless.nix b/profiles/graphical/suckless.nix index e2d8b34..58f518d 100644 --- a/profiles/graphical/suckless.nix +++ b/profiles/graphical/suckless.nix @@ -80,6 +80,8 @@ librewolf xclip maim + asciinema + asciinema-agg ]; }; } |
