Why do you need to source .zshrc for every new shell in iTerm?
Make sure your export/source are added after the plugins in your zshrc, as stated in this post: oh-my-zsh config file not loading
Make sure your export/source are added after the plugins in your zshrc, as stated in this post: oh-my-zsh config file not loading
I had the same problem after upgrading to Sierra. In addition to brew –prefix, which displays Homebrew’s install path, there’s also brew –repository, which displays where it’s .git directory is located. man brew says that claims that “for standard installs, the prefix and repository are the same directory”. Either the man page is out of … Read more
You should check that iTerm is setting the TERM variable correctly. On my system, I see: echo $TERM xterm-256color And have working colours in git. This is set according to the ‘Report Terminal Type’ property in iTerm’s preferences. You should also check the Colors tab, and ensure the contrast slider isn’t all the way to … Read more
It’s a configurable preference (like xterm’s alternateScroll resource). In iTerm2, that’s in the Advanced tab:
In order to turn code highlighting on in vim, try to enable the syntax plugin: :syntax enable
Turn off prefs->appearance->show per-pane title bars with split panes.
Now it is implemented in iTerm2 and can be activated by Settings -> Advanced -> Scroll wheel sends arrow keys when in alternate screen mode and change it to Yes (defaults write com.googlecode.iterm2 AlternateMouseScroll -bool true still works but it just changes the same setting)
Follow the directions in this superuser answer which describes using the iTerm custom key bindings to map ⌥ + ⇧ + ← to select by word. Its smart to make new key mappings in a profile to test it out, rather than the main keys preference. Suggested keybindings iTerm: Preferences > Profiles > Keys Click … Read more
For Emacs in iTerm 2, I’ve found that the following bit in my ~/.emacs file works very well, providing the ability to insert the character at an arbitrary location, mark a region, and use the scroll wheel: ;; Enable mouse support (unless window-system (require ‘mouse) (xterm-mouse-mode t) (global-set-key [mouse-4] (lambda () (interactive) (scroll-down 1))) (global-set-key … Read more
iTerm2 supports a custom escape code that changes the profile on the fly. Put it in your .bashrc or .bash_profile. <esc>]50;SetProfile=X^G where X is the profile. For instance, to change the profile to one called “Foo”, us this shell script: #!/bin/bash echo -e “\033]50;SetProfile=Foo\a” To change it back when you log out, put code to … Read more