From 0e202d4c579f94c68f992d9fe6a698b9ddc1e146 Mon Sep 17 00:00:00 2001 From: Rob Date: Tue, 19 Nov 2024 10:40:18 +0000 Subject: [PATCH] fix bash aliases to start tmux --- dot-files/.bashrc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/dot-files/.bashrc b/dot-files/.bashrc index 978ff6a..fa7163e 100644 --- a/dot-files/.bashrc +++ b/dot-files/.bashrc @@ -5,18 +5,20 @@ echo "## Mache ssh key verfügbar##" eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_bfds_gitea +echo echo "==============" echo "## Wechsel zu aktueller NixOS config Verzeichnis ##" echo "## run: git status" cd /etc/nixos/ 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 [ -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