maint: misc env cleanup

This commit is contained in:
Matthew Ryan Dillon 2021-10-26 16:34:29 -07:00
parent fce3b73fbb
commit 7721652200
2 changed files with 25 additions and 60 deletions

View file

@ -1,30 +1,25 @@
# Matthew Dillon
# matthewrdillon@gmail.com
#
# source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
if [[ -s "${HOME}/.nix-profile/etc/profile.d/nix.sh" ]]; then
source $HOME/.nix-profile/etc/profile.d/nix.sh
fi
srcs=(
"${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
"/opt/miniconda3/etc/profile.d/conda.sh"
"$HOME/.cargo/env"
)
if [[ -s "/opt/miniconda3/etc/profile.d/conda.sh" ]]; then
source /opt/miniconda3/etc/profile.d/conda.sh
fi
source "$HOME/.cargo/env"
# shortcuts
alias q="conda activate q2dev"
alias i="ipython3"
alias greg="grep"
alias vim="nvim"
for fp in $srcs; do
if [[ -s "$fp" ]]; then
source "$fp"
fi
done
BASE16_SHELL=$HOME/.config/base16-shell/
[ -n "$PS1" ] && [ -s $BASE16_SHELL/profile_helper.sh ] && eval "$($BASE16_SHELL/profile_helper.sh)"
alias q="conda activate q2dev"
alias i="ipython3"
alias vim="nvim"
# Backup shortcuts (borrowed parts from https://github.com/laurent22/rsync-time-backup
function prune_backups() {
dest_root="/Volumes/field_on_fire/$HOST"