39 lines
795 B
Bash
39 lines
795 B
Bash
|
|
||
|
|
||
|
#
|
||
|
# User configuration sourced by interactive shells
|
||
|
#
|
||
|
|
||
|
# 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
|
||
|
|