dotfiles/zsh/zshrc
c47 6a5d1db58b
Add support for local zshrc
Added a conditional to check for existence of .zshrc.local, which is a
local file: not in the git repository.
2024-04-28 18:33:19 +02:00

40 lines
914 B
Bash

# Lines configured by zsh-newuser-install
HISTFILE=~/.zsh/.zhistory
HISTSIZE=100
SAVEHIST=100
setopt autocd extendedglob nomatch notify
unsetopt beep
bindkey -v
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/c47/.zsh/.zshrc'
autoload -Uz compinit promptinit
compinit
# End of lines added by compinstall
promptinit
umask 0077
prompt elite2 magenta yellow
bindkey '\e.' insert-last-word
if [[ -f ${ZDOTDIR}/.zshrc.local ]]; then
source ${ZDOTDIR}/.zshrc.local
fi
if [[ -f ${ZDOTDIR}/.zaliases ]]; then
source ${ZDOTDIR}/.zaliases
fi
export PATH=${HOME}/.local/bin:${HOME}/.nix-profile/bin:${PATH}
export SSH_AUTH_SOCK=/var/run/user/$(echo $UID)/ssh-agent.sock
if [[ ! $(pidof ssh-agent) ]]; then
eval $(ssh-agent -a ${SSH_AUTH_SOCK})
fi
if [[ -f ${ZDOTDIR}/.zdirhashes ]]; then
source ${ZDOTDIR}/.zdirhashes
fi