dotconf/.zlogin

79 lines
2.2 KiB
Plaintext
Raw Normal View History

2022-02-09 07:17:28 -07:00
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
2020-12-25 09:44:08 -07:00
PLAN9=/usr/local/plan9/
if [ -d ~/src/plan9port ]; then
PLAN9=~/src/plan9port
fi
export PLAN9
2020-12-28 07:30:05 -07:00
if [ -d ~/opt/GNAT/2020/bin ]; then
2021-01-11 10:31:18 -07:00
GNAT=~/opt/GNAT/2020
2020-12-28 07:30:05 -07:00
fi
2021-01-11 10:31:18 -07:00
export GNAT
2020-12-28 07:30:05 -07:00
2021-07-28 07:11:25 -06:00
for p in "${HOME}/opt/bin" "${HOME}/opt/sbin" "${GNAT}/bin" "${PLAN9}/bin" "${HOME}/go/bin" "${HOME}/bin" "${HOME}/tinygo/bin" /Applications/Emacs.app/Contents/MacOS/bin; do
if [ -d $p ]; then
PATH="${PATH}:$p"
fi
2021-01-11 10:31:18 -07:00
done
2020-12-28 07:30:05 -07:00
export PATH
2020-12-18 12:55:26 -07:00
# That sweet sweet ^W
WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
autoload -Uz compinit && compinit
autoload -Uz vcs_info
autoload -Uz colors && colors
2020-12-19 08:30:13 -07:00
#[ -n "$BASH" ] && complete -F _fzf_complete_doge -o default -o bashdefault doge
2020-12-18 12:55:26 -07:00
2020-12-19 08:30:13 -07:00
export GPG_AGENT_INFO="~/.gnupg/S.gpg-agent:$(pgrep gpg-agent):1"
2021-12-29 08:40:45 -07:00
if which -s keychain >/dev/null; then
keychain --inherit any --agents ssh,gpg -q -Q
fi
MYNAME=$(uname -n)
[[ -f ~/.keychain/${MYNAME}-sh ]] && . ~/.keychain/${MYNAME}-sh
[[ -f ~/.keychain/${MYNAME}-sh-gpg ]] && . ~/.keychain/${MYNAME}-sh-gpg
2020-12-18 12:55:26 -07:00
precmd_vcs_info() { vcs_info }
precmd_functions+=( precmd_vcs_info )
setopt prompt_subst
zstyle ':vcs_info:*' enable git hg cvs
zstyle ':vcs_info:*' get-revision true
zstyle ':vcs_info:git:*' check-for-changes true
zstyle ':vcs_info:git:*' formats '[%b]'
PROMPT="%n@%m[%(?.%{$fg[white]%}.%{$fg[red]%})%?%{$reset_color%}]:%~\${vcs_info_msg_0_}%# "
2020-12-19 08:30:13 -07:00
case "$(uname -s)" in
Darwin)
;;
OpenBSD)
alias 'gopatch=WRKDIST=$(make show=WRKSRC) make update-patches'
alias cabal='env TMPDIR=/usr/local/cabal/build/ cabal'
alias cdw='cd $(make show=WRKSRC)'
alias irc="export TERM=xterm; tmux at -t irc"
alias man='man -Owidth=$(($COLUMNS<80?($COLUMNS-2):78))'
alias mutt='stty discard undef; neomutt'
alias pkg_add="pkg_add -Dsnap"
alias pkg_delete="pkg_delete -Dsnap"
alias pup='doas -n /usr/sbin/pkg_add -u'
;;
*)
esac
2021-11-17 07:18:38 -07:00
alias vi=nvim
2020-12-18 12:55:26 -07:00
alias ag='ag --nocolor'
alias ec='emacsclient -ct'
alias mkae='make'
alias pass="gopass"
alias rustc='rustc --color=never'
alias sbcl="rlwrap sbcl"
2021-02-09 07:41:52 -07:00
alias yaegi="rlwrap yaegi"
2020-12-18 12:55:26 -07:00
alias tmux="tmux -2"
2020-12-19 08:30:13 -07:00
alias dotconf="$(which git) --git-dir=$HOME/.dotconf --work-tree=$HOME"