diff options
| author | makefu <github@syntax-fehler.de> | 2018-12-05 16:41:38 +0100 |
|---|---|---|
| committer | makefu <github@syntax-fehler.de> | 2018-12-05 16:41:38 +0100 |
| commit | 48e1828a914159b7377d42ac7c34ef303a9b836f (patch) | |
| tree | a5724be8669d0f1bd44910cddc2899eb72f1e8ab /tv/2configs/bash | |
| parent | 1767369587d43aba5ec86780d85daf5e42812b8b (diff) | |
| parent | 329abcefa2d6bc33f6fe55268f4019f65de1cd7e (diff) | |
Merge remote-tracking branch 'lass/master' into HEAD
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 ''; }; } |
