diff options
| -rw-r--r-- | dotfiles-darwin/launchd/Makefile | 1 | ||||
| -rw-r--r-- | dotfiles-darwin/launchd/org.awhk.env.plist | 8 | ||||
| -rw-r--r-- | zsh/profile | 12 |
3 files changed, 14 insertions, 7 deletions
diff --git a/dotfiles-darwin/launchd/Makefile b/dotfiles-darwin/launchd/Makefile index 54d7b2a..83d0c81 100644 --- a/dotfiles-darwin/launchd/Makefile +++ b/dotfiles-darwin/launchd/Makefile @@ -1,3 +1,4 @@ +export ZSH := $(shell which zsh) export ENV_SH := $(realpath ../bin/env.sh) all: $(foreach plist, $(wildcard *.plist), ~/Library/LaunchAgents/${plist}) diff --git a/dotfiles-darwin/launchd/org.awhk.env.plist b/dotfiles-darwin/launchd/org.awhk.env.plist index 49b42d8..f598479 100644 --- a/dotfiles-darwin/launchd/org.awhk.env.plist +++ b/dotfiles-darwin/launchd/org.awhk.env.plist @@ -5,8 +5,12 @@ <key>Label</key> <string>org.awhk.env</string> - <key>Program</key> - <string>${ENV_SH}</string> + <key>ProgramArguments</key> + <array> + <string>${ZSH}</string> + <string>-l</string> + <string>${ENV_SH}</string> + </array> <key>StandardOutPath</key> <string>${HOME}/Library/Logs/org.awhk.env.log</string> 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 |
