From 36ad01f7fa3c94647860f3b0ed73879c608fcf12 Mon Sep 17 00:00:00 2001 From: GrĂ©goire DuchĂȘne Date: Sat, 29 Jan 2022 13:21:01 +0000 Subject: 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. --- zsh/profile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'zsh/profile') 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 -- cgit v1.2.3-70-g09d2