Attach tmux session upon entering shell

If the tmux session "C0DE" does not already exist, it will be created
This commit is contained in:
David Todd (c0de) 2018-02-10 19:22:34 -06:00
parent 0c4b016811
commit 130ba2d1a5

View File

@ -8,3 +8,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