2 ms·
I love iTerm! I've wondered whether it's possible to setup profile-specific (or folder-specific) aliases? I understand it might be zsh feature that I'm really
by dzhiurgis 7y ago
I love iTerm!
I've wondered whether it's possible to setup profile-specific (or folder-specific) aliases? I understand it might be zsh feature that I'm really after, but perhaps iTerm can solve it too?
- Cthulhu_ 7y agoI think you'll have to look into some scripting then; what you could do is create your aliases for each profile in a separate folder, then use the 'Send text at start' profile to just do a `source ~/profiles/1/aliases.sh` or something to that effect.
- eddyg 7y agoProfile-specific aliases are easy. In your .zshrc (or .bashrc), just use the value of $ITERM_PROFILE to set (or source a file containing) the aliases you want: [[ $ITERM_PROFILE == “AWS” ]] && source ~/.aliases.aws