dotfiles/dot_zshrc.tmpl

77 lines
2.3 KiB
Cheetah
Raw Normal View History

2023-02-14 08:36:53 +01:00
ZSH=$HOME/.oh-my-zsh
ZSH_DISABLE_COMPFIX="true"
DISABLE_AUTO_TITLE="true"
DISABLE_UNTRACKED_FILES_DIRTY="true"
COMPLETION_WAITING_DOTS="false"
export FZF_DEFAULT_COMMAND="fd --type file --color=always"
2023-10-14 06:59:57 +02:00
2023-02-14 08:36:53 +01:00
zle -N zle-line-init
zle -N zle-keymap-select
export KEYTIMEOUT=1
2024-04-07 09:55:14 +02:00
export PATH=$HOME/.local/bin:$HOME/.cargo/bin:/usr/local/bin:/usr/local/sbin:$PATH
2023-02-14 08:36:53 +01:00
plugins={{ .plugins }}
2024-01-22 17:26:01 +01:00
#chezmoi aliases
2024-01-24 09:06:22 +01:00
alias ccd='chezmoi cd'
alias cdi='chezmoi diff'
alias cap='chezmoi apply'
2024-01-22 17:26:01 +01:00
{{- if ne .chezmoi.os "openbsd" }}
2024-02-16 17:11:56 +01:00
zstyle :omz:plugins:keychain agents ssh
zstyle :omz:plugins:keychain identities {{ .sshkey }}
{{- end }}
2023-02-14 08:36:53 +01:00
source $ZSH/oh-my-zsh.sh
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
export EDITOR='nvim'
export GOPATH=$HOME/go
2024-05-17 10:02:29 +02:00
export GPG_TTY=$(tty)
2023-02-14 08:36:53 +01:00
{{- if eq .chezmoi.os "openbsd" }}
export CC='clang-16'
2023-02-14 08:36:53 +01:00
export PORTSDIR_PATH=/usr/ports/:/usr/ports/openbsd-wip
export PATH="$HOME/perl5/bin:$HOME/gems/bin:$HOME/.cargo/bin:$HOME/.local/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'
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 }}
2024-01-12 22:51:03 +01:00
{{ if eq .chezmoi.os "darwin" }}
2023-03-07 16:01:47 +01:00
source $HOME/perl5/perlbrew/etc/bashrc
2024-03-27 07:22:37 +01:00
export XDG_CONFIG_HOME="$HOME/.config"
2023-04-30 09:58:35 +02:00
{{- if eq .chezmoi.arch "arm64" }}
export PATH=/opt/homebrew/bin:$PATH
2024-02-23 09:46:44 +01:00
{{- end }}
{{- end }}
{{- end }}
eval "$(atuin init zsh)"