summaryrefslogtreecommitdiffstats
path: root/tv/2configs/bash/default.nix
diff options
context:
space:
mode:
authorlassulus <lass@blue.r>2018-10-06 21:49:45 +0200
committerlassulus <lass@blue.r>2018-10-06 21:49:45 +0200
commit390056ad91d2afc1a03f792b129fc3bab0d0576e (patch)
treef22e12ae14ae0b16276134c6786c0aafe71220bc /tv/2configs/bash/default.nix
parente7eab7bd54a69ddf6f71adf9d2796070ee154f8e (diff)
parent65dc542a2ae9ba565eb3848a9cbdb5da11a1563d (diff)
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'tv/2configs/bash/default.nix')
-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
'';
};
}