start tmux with .bashrc

This commit is contained in:
Rob committed 2024-11-19 10:37:22 +00:00
1 parent c49dc83d7b
commit eff28a6aa9
2 files changed
+4 -3

No files matched your search

+3 -2
View File
@@ -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
+1 -1
View File
@@ -1,5 +1,5 @@
set -g default-shell /run/current-system/sw/bin/bash
set -g default-command "bash --norc"
set -g default-command bash
set-option -g default-shell /run/current-system/sw/bin/bash
set-window-option -g automatic-rename on