tv bash: use XMONAD_SPAWN_WORKSPACE only for tv
change directory only for interactivetv user
This commit is contained in:
parent
127a259584
commit
ed44b2dacd
@ -13,6 +13,18 @@ with import <stockholm/lib>;
|
|||||||
shopt -s histappend histreedit histverify
|
shopt -s histappend histreedit histverify
|
||||||
shopt -s no_empty_cmd_completion
|
shopt -s no_empty_cmd_completion
|
||||||
complete -d cd
|
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
|
||||||
|
;;
|
||||||
|
esac
|
||||||
'';
|
'';
|
||||||
promptInit = /* sh */ ''
|
promptInit = /* sh */ ''
|
||||||
case $UID in
|
case $UID in
|
||||||
@ -32,14 +44,6 @@ with import <stockholm/lib>;
|
|||||||
if test -n "$SSH_AGENT_PID"; then
|
if test -n "$SSH_AGENT_PID"; then
|
||||||
PS1="ssh-agent[$SSH_AGENT_PID] $PS1"
|
PS1="ssh-agent[$SSH_AGENT_PID] $PS1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test ''${SHLVL-1} = 1; then
|
|
||||||
case ''${XMONAD_SPAWN_WORKSPACE-} in
|
|
||||||
stockholm)
|
|
||||||
cd ~/stockholm
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user