diff options
| author | jeschli <jeschli@gmail.com> | 2018-12-04 19:27:27 +0100 |
|---|---|---|
| committer | jeschli <jeschli@gmail.com> | 2018-12-04 19:27:27 +0100 |
| commit | 8ecc3901fd8bbd6172e6c32325aa3bc566c388de (patch) | |
| tree | 781f0a5fd3c27ba99072b75735981071db2cef5b /tv/2configs/bash | |
| parent | ebe6108a41748ae3f746ea3125216668542bcd4b (diff) | |
| parent | 006364274f516eb41def5f711c23b19e0b0a41f8 (diff) | |
Merge branch 'master' of prism.r:stockholm
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 ''; }; } |
