2023-02-14 08:59:24 +01:00
|
|
|
eval $(keychain --eval --agents ssh id_rsa)
|
|
|
|
[ -f ~/.keychain/$HOSTNAME-sh ] && . ~/.keychain/$HOSTNAME-sh 2>/dev/null
|
|
|
|
|
2023-02-14 08:36:53 +01:00
|
|
|
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
|
|
|
|
|
|
|
|
ZSH=$HOME/.oh-my-zsh
|
|
|
|
ZSH_THEME="powerlevel10k/powerlevel10k"
|
|
|
|
|
|
|
|
ZSH_DISABLE_COMPFIX="true"
|
|
|
|
# CASE_SENSITIVE="true"
|
|
|
|
DISABLE_AUTO_TITLE="true"
|
|
|
|
DISABLE_UNTRACKED_FILES_DIRTY="true"
|
|
|
|
COMPLETION_WAITING_DOTS="false"
|
|
|
|
|
|
|
|
export FZF_DEFAULT_COMMAND="fd --type file --color=always"
|
|
|
|
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
|
|
|
export FZF_DEFAULT_OPTS="--ansi"
|
|
|
|
export BAT_THEME="gruvbox-dark"
|
|
|
|
|
|
|
|
zle -N zle-line-init
|
|
|
|
zle -N zle-keymap-select
|
|
|
|
export KEYTIMEOUT=1
|
|
|
|
|
|
|
|
plugins={{ .plugins }}
|
|
|
|
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
|
|
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
|
|
|
|
|
|
|
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
|
|
|
|
export LC_ALL=en_US.UTF-8
|
|
|
|
export LANG=en_US.UTF-8
|
|
|
|
export EDITOR='nvim'
|
|
|
|
export GOPATH=$HOME/go
|
|
|
|
export GPG_TTY=$TTY
|
|
|
|
|
|
|
|
|
|
|
|
{{- if eq .chezmoi.os "openbsd" }}
|
|
|
|
export PORTSDIR_PATH=/usr/ports/:/usr/ports/openbsd-wip
|
2023-02-24 07:31:04 +01:00
|
|
|
export PATH="$HOME/dev/src/ltex-ls-15.2.0/bin:$HOME/local/bin:$HOME/perl5/bin:$HOME/gems/bin:$HOME/.cargo/bin:$HOME/.yarn/bin:$PATH"
|
2023-02-14 08:36:53 +01:00
|
|
|
export PERL5LIB=$HOME/perl5/lib/perl5
|
|
|
|
export PERL_LOCAL_LIB_ROOT=$HOME/perl5
|
|
|
|
export PERL_MB_OPT='--install_base "/home/jan/perl5"'
|
|
|
|
export PERL_MM_OPT='INSTALL_BASE=/home/jan/perl5'
|
2023-02-24 07:31:04 +01:00
|
|
|
export JAVA_HOME=/usr/local/jdk-11/
|
2023-02-14 08:36:53 +01:00
|
|
|
export PMIX_MCA_gds='hash'
|
|
|
|
|
|
|
|
alias top='htop'
|
2023-02-26 10:40:31 +01:00
|
|
|
alias ctags='uctags'
|
2023-03-18 06:34:24 +01:00
|
|
|
alias make='gmake'
|
|
|
|
alias tar='gtar'
|
2023-02-14 08:36:53 +01:00
|
|
|
alias man='manpager.sh'
|
|
|
|
alias mutt='neomutt'
|
|
|
|
alias dvim='doas nvim'
|
|
|
|
alias ic='doas ifconfig'
|
|
|
|
alias pq='doas pkg_info -Q'
|
|
|
|
alias pa='doas pkg_add'
|
|
|
|
alias pd='doas pkg_delete'
|
|
|
|
alias lpr='/usr/local/bin/lpr'
|
|
|
|
alias gpget='gopass -c'
|
|
|
|
alias ruby='ruby30'
|
|
|
|
alias gem='gem30'
|
|
|
|
alias bundle='bundle30'
|
|
|
|
alias mnt-net='doas mount_nfs -3 -a 4 -T -r 32768 -o noatime,nodev,noexec 192.168.178.10:/volume1/Data /mnt/nfs'
|
|
|
|
alias umnt-net='doas umount /mnt/nfs'
|
|
|
|
alias mnt-usb='doas mount /dev/sd1i /mnt/usb'
|
|
|
|
alias umnt-usb='doas umount /mnt/usb'
|
|
|
|
alias mnt-secret='doas mount dev/sd1c /mnt/encrypted_usb'
|
|
|
|
alias umnt-secret='doas unmount /mnt/encrypted_usb'
|
|
|
|
alias bkp-home='doas restic -r /mnt/nfs/BSD/restic-repo --verbose backup --one-file-system /home/jan --exclude /home/jan/data'
|
|
|
|
alias bkp-etc='doas restic -r /mnt/nfs/BSD/restic-repo --verbose backup /etc'
|
|
|
|
alias bkp-list='doas restic -r /mnt/nfs/BSD/restic-repo snapshots'
|
|
|
|
{{- else }}
|
2023-03-07 16:01:47 +01:00
|
|
|
source $HOME/perl5/perlbrew/etc/bashrc
|
2023-04-18 16:30:29 +02:00
|
|
|
export PATH=$HOME/local/bin:$GOPATH/bin:$HOME/.cargo/bin:$HOME/.symfony/bin:$PATH
|
|
|
|
{{- if eq .chezmoi.hostname "rohan" }}
|
|
|
|
export PATH=/opt/homebrew/bin:$PATH
|
|
|
|
{{- else }}
|
|
|
|
export PATH=/usr/local/opt/sqlite/bin:/usr/local/opt/ruby/bin:/usr/local/opt/mariadb@10.4/bin:$PATH
|
|
|
|
{{- end }}
|
2023-02-14 08:36:53 +01:00
|
|
|
{{- end }}
|
|
|
|
alias vim=nvim
|
|
|
|
|
|
|
|
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
|
|
|
|
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
|