start tmux with .bashrc
This commit is contained in:
1 parent
c49dc83d7b
commit
eff28a6aa9
2 files changed
+4
-3
No files matched your search
+3
-2
@@ -12,10 +12,11 @@ cd /etc/nixos/
|
||||
git status
|
||||
|
||||
echo "=============="
|
||||
alias tmuxxx='tmux -f /etc/nixos/dot-files/.tmux.conf new -d -s mainsession'
|
||||
alias tmuxx='tmux -f /etc/nixos/dot-files/.tmux.conf attach -t mainsession'
|
||||
### !! if not running inside tmux, ask user to start tmux or create session !!
|
||||
if [ -z "$TMUX" ]; then
|
||||
alias tmuxxx='tmux -f /etc/nixos/dot-files/.tmux.conf new -d -s mainsession'
|
||||
alias tmuxx='tmux -f /etc/nixos/dot-files/.tmux.conf attach -t mainsession'
|
||||
|
||||
if ! tmux ls &> /dev/null; then
|
||||
tmuxxx
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user