I cannot get iTerm2's shell integration work with oh-my-bash. I already tried the suggestions in the existing posts but without luck. My configuration looks as follow:
- iTerm2 profile
- General -> Command -> Custom Shell: /usr/local/bin/bash
- Send text at start: source ~/.bashrc (required to activate oh-my-bash)
- My login shell (according to
chsh
): /usr/local/bin/bash
I have installed the iTerm2 Shell integration using the integrated installer.
Removing the Send text at start command makes the Shell integration work, however, also disabled oh-my-bash. I tested it, for example, using the Shift+cmd + ↑ shortcut which allows jumping between marks.
Approaches
I tried playing around with
- iTerm2 profile: Login Shell / Custom Command
- Sourcing
~/.bash_profile
and~/.bashrc
manually
However, I could not accomplish to have at the same time oh-my-bash enabled, the iTerm2 Shell integration working, and the tools that are initialized in ~/.bash_profile (e.g., brew
and itermocil
) working.