dotfiles/zshrc

68 lines
1.5 KiB
Bash
Raw Permalink Normal View History

2018-06-21 23:56:32 -04:00
#if [[ -f /etc/solus-release ]]; then
# if [[ $TILIX_ID || $VTE_VERSION ]]; then
# echo "Loading VTE extensions..."
# source /usr/share/defaults/etc/profile.d/vte.sh
# fi
#fi
#precmd_functions+=(__vte_osc7)
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
2018-06-21 23:56:32 -04:00
#function custom_prompt() {
# VTE_PWD_THING="$(__vte_osc7)"
# PS1="$PS1$VTE_PWD_THING"
#}
if [[ -f /etc/solus-release ]]; then
export SSH_ASKPASS=/usr/lib64/seahorse/seahorse/ssh-askpass
if [[ $TILIX_ID || $VTE_VERSION ]]; then
source /usr/share/defaults/etc/profile.d/vte.sh
precmd_functions+=(__vte_osc7)
fi
fi
2018-05-28 03:47:56 -04:00
# Set GPG TTY
2018-06-21 23:56:32 -04:00
#export GPG_TTY=$(tty)
2018-05-28 03:47:56 -04:00
# Refresh gpg-agent tty in case user switches into an X session
2018-06-21 23:56:32 -04:00
#gpg-connect-agent updatestartuptty /bye >/dev/null
2018-05-28 03:47:56 -04:00
# Update SSH Agent Socket
2018-06-21 23:56:32 -04:00
#unset SSH_AGENT_PID
#if [[ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]]; then
# export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
#fi
2018-05-28 03:47:56 -04:00
# 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')