dotfiles/shell/env
David Todd (c0de) 130ba2d1a5 Attach tmux session upon entering shell
If the tmux session "C0DE" does not already exist, it will be created
2018-02-10 19:22:34 -06:00

16 lines
419 B
Plaintext

# 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
export LANGUAGE=en_US.UTF-8
# Paths
export PATH=$PATH:${HOME}/bin:/usr/lib/wine/bin:/sbin:/usr/sbin:/usr/local/bin
# Automatically attach tmux session "C0DE" upon entering a shell
if [[ -z "$TMUX" ]]; then
tmux attach -t C0DE || tmux new -s C0DE
fi