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
|
git status
|
||||||
|
|
||||||
echo "=============="
|
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 not running inside tmux, ask user to start tmux or create session !!
|
||||||
if [ -z "$TMUX" ]; then
|
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
|
if ! tmux ls &> /dev/null; then
|
||||||
tmuxxx
|
tmuxxx
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
set -g default-shell /run/current-system/sw/bin/bash
|
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-option -g default-shell /run/current-system/sw/bin/bash
|
||||||
|
|
||||||
set-window-option -g automatic-rename on
|
set-window-option -g automatic-rename on
|
||||||
|
|||||||
Reference in new issue
Block a user