aboutsummaryrefslogtreecommitdiffstats
path: root/home
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-04-24 10:18:50 -0700
committerMark Nipper <nipsy@bitgnome.net>2024-04-24 10:18:50 -0700
commit35ef28be013ae9dfa49843eb5786506b9d11f941 (patch)
tree996d90e8b46c4570669c4b9fbb7fd65d531aaf6b /home
parentc0a31f69ad0603bb9a68aef80ead239d091a016d (diff)
downloadnix-35ef28be013ae9dfa49843eb5786506b9d11f941.tar
nix-35ef28be013ae9dfa49843eb5786506b9d11f941.tar.gz
nix-35ef28be013ae9dfa49843eb5786506b9d11f941.tar.bz2
nix-35ef28be013ae9dfa49843eb5786506b9d11f941.tar.lz
nix-35ef28be013ae9dfa49843eb5786506b9d11f941.tar.xz
nix-35ef28be013ae9dfa49843eb5786506b9d11f941.tar.zst
nix-35ef28be013ae9dfa49843eb5786506b9d11f941.zip
Add NixOS helper function to zsh
Diffstat (limited to '')
-rw-r--r--home/nipsy/common/core/zsh/zshrc6
1 files changed, 5 insertions, 1 deletions
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)