1
0
Fork 0
dotfiles/common/.config/zsh/.zshrc

32 lines
678 B
Bash

# Set cursor and title early
echo -ne '\e[5 q'
echo -ne "\e]0;$(print -P "%n@%m [%3~]")\007"
command -v direnv &>/dev/null && emulate zsh -c "$(direnv export zsh)"
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
for f in \
"plugins" \
"functions" \
"aliases" \
"hashes" \
"options" \
"bindings" \
"completions" \
"widgets" \
"host" \
"prompt"
do
source "${ZDOTDIR}/config/${f}.zsh"
done
gpg-connect-agent updatestartuptty /bye >/dev/null 2>&1
# TODO: python argcomplete
# TODO: gempath
export GPG_TTY=$(tty)