2020-03-25 14:26:51 -05:00
|
|
|
# Skip all this for non-interactive shells
|
|
|
|
[[ -z "$PS1" ]] && return
|
|
|
|
|
|
|
|
# Force en_US UTF-8 environment
|
|
|
|
export LC_ALL=en_US.UTF-8
|
|
|
|
export LANG=en_US.UTF-8
|
2016-06-14 14:13:06 -05:00
|
|
|
export LANGUAGE=en_US.UTF-8
|
|
|
|
|
2018-10-22 23:28:31 -05:00
|
|
|
# Terminal Editor
|
|
|
|
export EDITOR=vim
|
|
|
|
|
2016-06-14 14:13:06 -05:00
|
|
|
# Paths
|
2018-10-22 23:20:59 -05:00
|
|
|
export PATH=${HOME}/bin:$PATH:/usr/lib/wine/bin:/sbin:/usr/sbin:/usr/local/bin
|
2018-02-10 19:22:34 -06:00
|
|
|
|
2018-02-10 22:24:17 -06:00
|
|
|
# Give the path to the dotfiles
|
|
|
|
export _DOTFILES="${HOME}/dotfiles"
|
|
|
|
|
2021-01-11 22:20:28 -06:00
|
|
|
# Allow checking for automatic updates
|
|
|
|
export ENABLE_DOTFILES_AUTO_UPDATE=true
|
2018-02-10 21:36:07 -06:00
|
|
|
|
2018-02-10 23:18:23 -06:00
|
|
|
# Set "true" to update without asking first
|
2021-01-11 22:20:28 -06:00
|
|
|
export DISABLE_DOTFILES_UPDATE_PROMPT=false
|
2018-02-10 23:18:23 -06:00
|
|
|
|
2018-02-10 22:24:17 -06:00
|
|
|
# Update every 2 weeks (OMZ default)
|
|
|
|
export UPDATE_DOTFILES_DAYS=13
|
|
|
|
|
2018-05-16 19:23:26 -05:00
|
|
|
# Whether or not to automatically connect to a TMUX session when opening the shell
|
2021-01-17 19:26:12 -06:00
|
|
|
#export ENABLE_TMUXAC=false
|
2018-05-16 19:23:26 -05:00
|
|
|
|
|
|
|
# If there is not an active tmux session, we probably want one
|
|
|
|
# Otherwise, the shell will not open the session again (eg. opening tabs, new terminals)
|
2021-01-17 19:26:12 -06:00
|
|
|
#if $(tmux list-sessions >> /dev/null 2>&1); then
|
|
|
|
# export TMUXATT=true
|
|
|
|
#else
|
|
|
|
# export TMUXATT=false
|
|
|
|
#fi
|
2018-05-16 19:23:26 -05:00
|
|
|
|
|
|
|
# Automatically attach tmux session "C0DE"
|
2021-01-17 19:26:12 -06:00
|
|
|
#if [[ -z "$TMUX" && "$TMUXATT"==true && "$ENABLE_TMUXAC"==true ]]; then
|
|
|
|
# tmux attach -t C0DE || tmux new -s C0DE
|
|
|
|
#fi
|
2019-12-13 09:31:53 -06:00
|
|
|
|
|
|
|
# Enable shell-history for interactive shells
|
|
|
|
# https://github.com/pawamoy/shell-history
|
2020-03-02 15:02:14 -06:00
|
|
|
#if [[ $- == *i* ]] && command -v shellhistory-location &>/dev/null; then
|
|
|
|
# . $(shellhistory-location)
|
|
|
|
# shellhistory enable
|
|
|
|
#fi
|