Zen
3 years ago
2 changed files with 35 additions and 17 deletions
@ -0,0 +1,10 @@ |
|||||||
|
# Extra Aliases |
||||||
|
alias b='cd ..' |
||||||
|
|
||||||
|
# Checks for active tmux |
||||||
|
tmux ls &> /dev/null |
||||||
|
if [ $? -eq 0 ] && [ -z "$TMUX" ]; then |
||||||
|
echo "\nYou have an active tmux session! Run 'tmux attach' to restore it.\n" |
||||||
|
elif [ -z "$TMUX" ]; then |
||||||
|
tmux new -s "tmux" |
||||||
|
fi |
Loading…
Reference in new issue