all repos — nixfiles @ ec5b022828abaef4bcc5bad45c569e2b70fbf733

System and user configuration, managed by nix and home-manager

Optimise zsh startup

Alan Pearce
commit

ec5b022828abaef4bcc5bad45c569e2b70fbf733

parent

3c341998089f783680446aa0bed2322102d5ec7a

2 files changed, 2 insertions(+), 3 deletions(-)

jump to
M user/modules/zsh.nixuser/modules/zsh.nix
@@ -91,6 +91,7 @@ else
EMAIL=alan@alanpearce.eu fi + typeset -T GHQ_ROOT ghq_root export GHQ_ROOT="$HOME/projects:$HOME/go/src:$HOME/quicklisp/local-projects" '' + builtins.readFile ../zsh/.config/zsh/.zshrc; };
M user/zsh/.config/zsh/.zshrcuser/zsh/.config/zsh/.zshrc
@@ -1,7 +1,5 @@
# -*- mode: sh; -*- source $HOME/.zplugin/bin/zplugin.zsh -autoload -Uz _zplugin -(( ${+_comps} )) && _comps[zplugin]=_zplugin setopt inc_append_history_time setopt transient_rprompt
@@ -114,7 +112,7 @@ du -hd1 $1 | $sort -h
} # returns the first ghq root, whereas $GHQ_ROOT returns all -hash -d p=$(ghq root) +hash -d p=$ghq_root[0] hash -d go=${GOPATH:-$HOME/go} zle -C hist-complete complete-word _generic