I'm using prezto with iTerm and in my .zshrc
, I have the following line that changes the color scheme:
sh ~/.vim/plugins/gruvbox/gruvbox_256palette_osx.sh
However, sometimes when I click ⌘ + R
, I lose the color scheme and I have to execute the command manually. So I was wondering if it was possible to do it automatically.
I've tried putting it into my profile command:
zsh --login && sh ~/.vim/plugins/gruvbox/gruvbox_256palette_osx.sh
However, when I open a new tab of iTerm, I get the error message:
A session ended very soon after starting. Check that the command in profile "Chin" is correct.
Best Answer
Send text at start: field in Settings/General in your iTerm profile.
start it like this:
To resolve the "⌘ + r" issue:
Open up preferences (iTerm > Preferences -or- ⌘,)
Under Keys:
⌘t, ⌘r, ⌘w