summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorGrégoire Duchêne <gduchene@awhk.org>2022-01-29 13:21:01 +0000
committerGrégoire Duchêne <gduchene@awhk.org>2022-01-29 13:21:01 +0000
commit36ad01f7fa3c94647860f3b0ed73879c608fcf12 (patch)
tree8b16b76ce663680a84a32e7a21ca8323d941fab2 /zsh
parentd8b279da154813346631479ed89e107d434f3aae (diff)
darwin/env.sh: Run script in a login shell
We need a login shell to have the right PATH set. Also, we need not to call stty when TERM is empty, which it will be when that script runs.
Diffstat (limited to 'zsh')
-rw-r--r--zsh/profile12
1 files changed, 7 insertions, 5 deletions
diff --git a/zsh/profile b/zsh/profile
index 97f766c..536502d 100644
--- a/zsh/profile
+++ b/zsh/profile
@@ -7,11 +7,13 @@
done
}
-# Make C-q and C-s work in zsh.
-#
-# See https://en.wikipedia.org/wiki/Software_flow_control for gory
-# details.
-stty -ixon
+if [[ -n ${TERM} ]]; then
+ # Make C-q and C-s work in zsh.
+ #
+ # See https://en.wikipedia.org/wiki/Software_flow_control for gory
+ # details.
+ stty -ixon
+fi
source_if_exists dotfiles-${UNAME}/zsh/profile
source_if_exists dotfiles-${DOMAIN}/zsh/profile