Feature request: allow alternate paths for shell integration script & utilities
I always rename .iterm2_shell_integration.zsh
to .iterm2.zsh
, because I prefer to avoid having such long names appear in my home directory listings. Other people might prefer to keep .iterm2_shell_integration.zsh
inside $HOME/.config
, or some other location. (I would actually prefer to put it in $HOME/.preferences/shells/zsh
but burying it so deep right now would be more pain than it's worth.) It would be really nice if iTerm would support such alternate locations when upgrading the shell integration features (which are awesome! by the way). It might seem like a big pain for small gain, but I think it'll actually be very easy, thanks to type -a
:
type -a iterm2_set_user_var
will tell you where it is, and piping this through sed will isolate it:
type -a iterm2_set_user_var | sed -E 's|.*shell function from ||'
This should allow users to organize their home directories however they see fit, without breaking shell integration upgrades, and without requiring us to manually make adjustments.