diff options
Diffstat (limited to 'templates/.zshrc')
-rw-r--r-- | templates/.zshrc | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/templates/.zshrc b/templates/.zshrc new file mode 100644 index 0000000..14cd800 --- /dev/null +++ b/templates/.zshrc @@ -0,0 +1,41 @@ +# vim: set ft=zsh: + +# shortcut to this dotfiles path is $ZSH +export ZSH=$HOME/.zsh + +# Load any machine-specific config and environment variables +if [[ -a ~/.localrc ]]; then + source ~/.localrc +fi + +source $ZSH/env.zsh +source $ZSH/path.zsh +source $ZSH/window.zsh +source $ZSH/aliases.zsh +source $ZSH/config.zsh +source $ZSH/prompt.zsh + +for f in $(find $ZSH/functions -type f); do + source $f +done + +fpath=($HOME/.bin $ZSH/functions $fpath) + +export GPG_TTY="$(tty)" +export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) +gpgconf --launch gpg-agent +gpg-connect-agent updatestartuptty /bye > /dev/null 2>&1 + +# initialize autocomplete here, otherwise functions won't be loaded +autoload -U compinit +compinit +source $ZSH/completion.zsh + +# external scripts +{{ range .Vars.ZSH.AutoScripts }} +if [[ -f "{{ . }}" ]] ; then source "{{ . }}" ; fi +{{ end }} + +if [[ -x /usr/bin/setxkbmap ]]; then + setxkbmap -option caps:escape +fi |