summaryrefslogtreecommitdiffstats
path: root/tv/2configs
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2018-10-03 22:23:31 +0200
committertv <tv@krebsco.de>2018-10-03 22:23:31 +0200
commit0a65f69db31e75851e810d461b4882b29653e087 (patch)
tree0e0d1eeaaa8dd2320433a75c40f5dd39122e11e2 /tv/2configs
parentba5e2081cdb899e47efb04d9c0cac605685e1765 (diff)
tv bash: use XMONAD_SPAWN_WORKSPACE when SHLVL=1
Diffstat (limited to 'tv/2configs')
-rw-r--r--tv/2configs/bash/default.nix12
1 files changed, 7 insertions, 5 deletions
diff --git a/tv/2configs/bash/default.nix b/tv/2configs/bash/default.nix
index 546b2e7b7..b75ad8bfc 100644
--- a/tv/2configs/bash/default.nix
+++ b/tv/2configs/bash/default.nix
@@ -33,11 +33,13 @@ with import <stockholm/lib>;
PS1="ssh-agent[$SSH_AGENT_PID] $PS1"
fi
- case ''${XMONAD_SPAWN_WORKSPACE-} in
- stockholm)
- cd ~/stockholm
- ;;
- esac
+ if test ''${SHLVL-1} = 1; then
+ case ''${XMONAD_SPAWN_WORKSPACE-} in
+ stockholm)
+ cd ~/stockholm
+ ;;
+ esac
+ fi
'';
};
}