dotfiles/zshrc

47 lines
968 B
Bash
Raw Normal View History

2018-05-28 03:47:56 -04:00
#
# User configuration sourced by interactive shells
#
2018-06-02 17:49:12 -04:00
typeset -U PATH
export PATH
2018-05-28 03:47:56 -04:00
# Change default zim location
export ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim
# Start zim
[[ -s ${ZIM_HOME}/init.zsh ]] && source ${ZIM_HOME}/init.zsh
# Fix the ESC+Backspace
bindkey -e
bindkey -e "^[[1;5C" forward-word
bindkey -e "^[[1;5D" backward-word
# Default Environment
export EDITOR=vim
export VISUAL=vim
export PAGER=less
export BORG_REPO=/mnt/backups/psi-jack/borg
# Set GPG TTY
export GPG_TTY=$(tty)
# Refresh gpg-agent tty in case user switches into an X session
gpg-connect-agent updatestartuptty /bye >/dev/null
# Update SSH Agent Socket
unset SSH_AGENT_PID
if [[ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]]; then
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
fi
# Disable Ctrl+S Scroll-Locking
stty -ixon
# Include local functions/aliases/environments:
2018-06-06 10:01:54 -04:00
while read f
do
source "$f"
done < <(find "${HOME}/.local/dotfiles/" -type f -name '*.zsh')