Consider using ${HOME} instead of hardcoded path to shell integration script
After setting up shell integration using the automatic installation I see that in my .zshrc
a line was added to source the shell integration script. If the user shares the same shell configuration file across different systems, and thus different operating systems, this entry could cause problems as it assumes that the script will always exist and it will be in an absolute path. To make this more portable, especially for users who may share the same config files with multiple environments, I suggest the following change. Instead of just doing this:
source /Users/vendion/.iterm2_shell_integration.zsh
the installer adds the following
if [[ -e "${HOME}/.iterm2_shell_integration.zsh" ]]; then
source "${HOME}/.iterm2_shell_integration.zsh"
fi
This method will work for both Bash (replacing ".zsh" with ".sh" of course) and may also work with Fish and other shells.