Skip to content

Commit

Permalink
move /etc/zprofile.d parsing from /etc/zshrc to /etc/zprofile
Browse files Browse the repository at this point in the history
to avoid these scripts being parsed in terminal emulators running in X11

https://forums.whonix.org/t/change-default-shell-from-bash-to-zsh-by-default/14792/147
  • Loading branch information
adrelanos committed Aug 28, 2023
1 parent f87a887 commit 8b19dbf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
9 changes: 9 additions & 0 deletions etc/zsh/zprofile.dist
Expand Up @@ -5,3 +5,12 @@
# shells invoked with the -l flag.)
#
# Global Order: zshenv, zprofile, zshrc, zlogin

if [ -d /etc/zprofile.d ]; then
for i in /etc/zprofile.d/*.zsh; do
if [ -r $i ]; then
. $i
fi
done
unset i
fi
9 changes: 0 additions & 9 deletions etc/zsh/zshrc.dist
Expand Up @@ -6,15 +6,6 @@
## https://github.com/jeffreytse/zsh-vi-mode/blob/master/zsh-vi-mode.zsh
## https://github.com/cloudhead/dotfiles/blob/master/.zshrc

if [ -d /etc/zprofile.d ]; then
for i in /etc/zprofile.d/*.zsh; do
if [ -r $i ]; then
. $i
fi
done
unset i
fi

## base dir
zsh_custom_dir="/etc/zsh"

Expand Down

0 comments on commit 8b19dbf

Please sign in to comment.