aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPolesznyák Márk <contact@pml68.dev>2026-03-12 09:35:38 +0100
committerPolesznyák Márk <contact@pml68.dev>2026-03-12 09:35:38 +0100
commit68bb30f7b280d8e3d17716700f59ad7e3b40b90a (patch)
tree19ff31f6a895b494df531224c8464163ccdb6d24
parentfeat(betterdiscord): remove automatic bun install (diff)
downloaddotfiles-68bb30f7b280d8e3d17716700f59ad7e3b40b90a.tar.gz
feat(bashrc): only start tmux session for starter fn if not in one
-rw-r--r--.bashrc6
1 files changed, 5 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index 8d2c4d3..fd1111c 100644
--- a/.bashrc
+++ b/.bashrc
@@ -73,7 +73,11 @@ starter() {
setxkbmap hu -option caps:escape
read -p "Update AUR packages? [Y/n]: " aur_pkgs
if [[ -z "$aur_pkgs" ]] || [[ "$aur_pkgs" == "Y" ]] || [[ "$aur_pkgs" == "y" ]]; then
- tmux new-session 'aur ; bash'
+ if [[ -z "$TMUX" ]]; then
+ tmux new-session 'aur ; bash'
+ else
+ aur
+ fi
fi
}