From 2f37a4178ff647a3fe501e7057d00f0d1d629c52 Mon Sep 17 00:00:00 2001 From: Tom Hicks Date: Fri, 20 Sep 2024 17:02:17 -0700 Subject: [PATCH] Adds iTerm2 shell integration script. --- .rc.d/iterm2.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .rc.d/iterm2.sh diff --git a/.rc.d/iterm2.sh b/.rc.d/iterm2.sh new file mode 100644 index 0000000..a2577ae --- /dev/null +++ b/.rc.d/iterm2.sh @@ -0,0 +1,6 @@ +function { + local script_path="$HOME/.iterm2_shell_integration.zsh" + if [ "$TERM_PROGRAM" = "iTerm.app" -a -e "$script_path" ]; then + source "$script_path" + fi +}