diff options
| author | lassulus <lassulus@lassul.us> | 2018-11-30 20:42:01 +0100 |
|---|---|---|
| committer | lassulus <lassulus@lassul.us> | 2018-11-30 20:42:01 +0100 |
| commit | 11aea15ec0207cbd081c0c1a8ba205f95308c7ae (patch) | |
| tree | 1ce81d22809ad08482280f3844d781c42fca80df /tv/2configs/bash | |
| parent | 8d87e4b8909adff80f9b9dd83fe177a3dff8918d (diff) | |
| parent | 5d0bd94dd9002a0c65bdc76eedde15a07937087e (diff) | |
Merge remote-tracking branch 'ni/master'
Diffstat (limited to 'tv/2configs/bash')
| -rw-r--r-- | tv/2configs/bash/default.nix | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/tv/2configs/bash/default.nix b/tv/2configs/bash/default.nix index b75ad8b..d767393 100644 --- a/tv/2configs/bash/default.nix +++ b/tv/2configs/bash/default.nix @@ -13,6 +13,20 @@ with import <stockholm/lib>; shopt -s histappend histreedit histverify shopt -s no_empty_cmd_completion complete -d cd + + case $UID in + ${shell.escape (toString config.krebs.users.tv.uid)}) + if test ''${SHLVL-1} = 1; then + case ''${XMONAD_SPAWN_WORKSPACE-} in + stockholm) + cd ~/stockholm + ;; + esac + fi + + export NIX_PATH="stockholm=$HOME/stockholm:$NIX_PATH" + ;; + esac ''; promptInit = /* sh */ '' case $UID in @@ -32,14 +46,6 @@ with import <stockholm/lib>; if test -n "$SSH_AGENT_PID"; then PS1="ssh-agent[$SSH_AGENT_PID] $PS1" fi - - if test ''${SHLVL-1} = 1; then - case ''${XMONAD_SPAWN_WORKSPACE-} in - stockholm) - cd ~/stockholm - ;; - esac - fi ''; }; } |
