From 35ef28be013ae9dfa49843eb5786506b9d11f941 Mon Sep 17 00:00:00 2001 From: Mark Nipper Date: Wed, 24 Apr 2024 10:18:50 -0700 Subject: Add NixOS helper function to zsh --- home/nipsy/common/core/zsh/zshrc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/home/nipsy/common/core/zsh/zshrc b/home/nipsy/common/core/zsh/zshrc index cd857e3..5c72aad 100644 --- a/home/nipsy/common/core/zsh/zshrc +++ b/home/nipsy/common/core/zsh/zshrc @@ -41,15 +41,19 @@ setopt LONG_LIST_JOBS NO_HUP # zle options setopt NO_BEEP +# menu completion zstyle ':completion:*' menu select=5 +# vi keybindings and settings bindkey -v export KEYTIMEOUT=1 - autoload -U edit-command-line zle -N edit-command-line bindkey -M vicmd v edit-command-line +# useful helper functions +function nix-file-list { find $(nix build ${1} --print-out-paths --no-link) } + # always open tmux if interactive [[ $- != *i* ]] && return #[[ -z "$TMUX" ]] && (tmux -2 new-session -t default \; new-window || tmux -2 new-session -s default) -- cgit v1.2.3