diff options
-rw-r--r-- | tv/2configs/bash/default.nix | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/tv/2configs/bash/default.nix b/tv/2configs/bash/default.nix index 546b2e7..b75ad8b 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 ''; }; } |