Skip to content

Commit 5ab43a6

Browse files
committed
Fix session startup with zsh
As suggested in #352.
1 parent 82c1914 commit 5ab43a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

data/scripts/Xsession

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ case $SHELL in
2020
. $HOME/.profile
2121
fi
2222
;;
23-
*/zsh)
23+
*/zsh)
2424
[ -z "$ZSH_NAME" ] && exec $SHELL $0 "$@"
25-
emulate -R sh
2625
[ -d /etc/zsh ] && zdir=/etc/zsh || zdir=/etc
2726
zhome=${ZDOTDIR:-$HOME}
2827
# zshenv is always sourced automatically.
2928
[ -f $zdir/zprofile ] && . $zdir/zprofile
3029
[ -f $zhome/.zprofile ] && . $zhome/.zprofile
3130
[ -f $zdir/zlogin ] && . $zdir/zlogin
3231
[ -f $zhome/.zlogin ] && . $zhome/.zlogin
32+
emulate -R sh
3333
;;
3434
*/csh|*/tcsh)
3535
# [t]cshrc is always sourced automatically.

0 commit comments

Comments
 (0)