.dotfiles/zsh/.zprofile
2023-11-25 02:20:35 -05:00

42 lines
1.2 KiB
Bash
Executable file
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

export ITERM_ENABLE_SHELL_INTEGRATION_WITH_TMUX=YES
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='nvim'
fi
export PYENV_ROOT="$HOME/.pyenv"
[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
export PATH=$PATH:/usr/local/bin/
chmod -R ug+rwx "$HOME/.local/bin/"
export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border'
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"´
alias python="python3"
alias vim="nvim"
alias tn="tmux new -s (pwd | sed 's/.*\///g')"
alias cat="bat --paging=never"
# set bat to highlight --help messages
alias bathelp='bat --plain --language=help'
help() {
"$@" --help 2>&1 | bathelp
}
# overwriting -h and --help with bat highlights
alias -g -- -h='-h 2>&1 | bat --language=help --style=plain'
alias -g -- --help='--help 2>&1 | bat --language=help --style=plain'
# dir location alias
alias projects="cd ~/projects"
alias download="cd ~/Download"
alias document="cd ~/Document"
alias config="cd ~/.config"
alias .tmux.conf="nvim ~/.tmux.conf"
alias research="cd Google\ Drive/My\ Drive/School/UoGuelph/MSc/Research/soft_skills_job_desc/jfraeysd/"