Questions tagged [iterm]

iTerm is an enhanced terminal emulator for OS X and macOS

iTerm2 is a replacement for Terminal and the successor to iTerm. It works on Macs with OS 10.5 (Leopard) or newer. Its focus is on performance, internationalization, and supporting innovative features that make your life better.

332 questions
26
votes
4 answers

tmux not re-attaching

I recently switched from using screen to tmux (obtained through macports), as I like the feature set more. However, I can't seem to get tmux to reattach from an alternate location, like I can screen. At home on my mac, I will open up iTerm2, my…
kenny
  • 3,439
  • 3
  • 26
  • 31
26
votes
2 answers

iTerm2 swap panes keyboard shortcut

The option for swapping between panes is only available through the menu button but I can't see any action to bind to this action. Is there and in built command that allows to swap panes?
tushar
  • 741
  • 1
  • 8
  • 21
24
votes
1 answer

How can I quickly scroll down the output of git commands?

I have to show my commits using git show c36432. The files are very big and it sometimes takes a long time to go line by line. What can I do to move fast, like page by page? I am using iterm as terminal on Mac OS X.
user3214546
  • 6,523
  • 13
  • 51
  • 98
23
votes
4 answers

How to get Cmd-left/right working with iTerm2 and Vim (without requiring .vimrc changes)?

I want to be able to use Option-left and Option-right to skip words (and Cmd-left/right to go to beginning and end of lines) within Vim as it does at my shell prompt. My Iterm2 preferences have mappings to do this (e.g. Option-left to Esc-H and a…
Dolan Antenucci
  • 15,432
  • 17
  • 74
  • 100
23
votes
6 answers

How do I get my iTerm prompt to display differently when I'm in a Git branch?

I'm trying to get my iTerm prompt set up the same way as Paul Irish So far I have the following in ~/.profile: # Add git branch name to prompt parse_git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/*\(.*\)/ on…
purinkle
  • 907
  • 2
  • 10
  • 20
23
votes
2 answers

Can't see what I'm typing in iterm2

Periodically, I'll run rspec (though I don't know if its specific to that) and suddenly, I can't see what i'm typing. I have to close that iterm2 window out and open a new one. Then that will work fine for a while and iterm2 will hide my typing…
fregas
  • 3,192
  • 3
  • 25
  • 41
23
votes
1 answer

screen: how to turn on alternate screen?

When I work in terminal, I see the history of the last shell commands execution output. If I run vim, I see the file I open full screen. When I exit vim, I can see the history of the last shell commands again. However, when I use vim from screen. I…
user1541776
  • 497
  • 4
  • 14
22
votes
1 answer

Is it possible to see a log or history of previous iTerm2 sessions?

Is there a log of recent terminal sessions at all? Or anyway I can see what was written to console before I last quit?
Mascros
  • 341
  • 1
  • 3
  • 12
20
votes
2 answers

"M-" bindings in vim on iTerm2/Terminal don't work

I noticed that iTerm2 offers the very convenient feature of using "Option key as +ESC" (or as meta, but apparently that's obsolete). I tried them both and the option key works as expected in Bash (set -o emacs mode) and Emacs, but not in Vim. Thus,…
Dan
  • 3,490
  • 2
  • 22
  • 27
19
votes
4 answers

Leaving tmux scrollback in terminal (iTerm2)

Usually tmux will only show as much output as however many rows my terminal currently displays. And then when I detach it, it clears all of its content. I know how to look at scrollback (ctrl+A, [, k, ...), but how can I configure tmux to just print…
chbrown
  • 11,865
  • 2
  • 52
  • 60
18
votes
2 answers

Copy and paste in vim via keyboard between different mac terminals?

Can anyone help me with this: I'm trying to figure out how to copy and paste text between 2 different instances of vim on different terminals (using iterm2 or mac terminal). I can do it using the mouse if I do ":set mouse=a" but I'd like to be able…
Eddy
  • 6,661
  • 21
  • 58
  • 71
17
votes
3 answers

Is there a way to "refresh" the terminal/iTerm without closing the current sessions?

I just updated my xcode command line tool in my iTerm2 and it seems like I need to restart my iTerm to put that to work, since when I try to use tns build ios command to build my nativescript project for iOS, it always echos back xcodebuild…
Hang Chen
  • 549
  • 1
  • 7
  • 18
17
votes
3 answers

How do i clear tmux screen while tailing logs?

I'm using tmux with iTerm2. Clear screen using Ctrl-L works when i'm in bash, but does not work when i'm tailing server logs. How do i fix this?
Sathish
  • 171
  • 1
  • 3
17
votes
5 answers

How do I insert a tab character in Iterm?

Simply put, I know you can do ctrl+v+tab to insert a physically real tab character in a bash statement. But how do I do the same for iTerm?
E.Cross
  • 2,087
  • 5
  • 31
  • 39
16
votes
4 answers

Unexpected colors with solarized dark theme on emacs (blue background)

I have set my iterm2 to use the solarized color theme: I would also like to have emacs use this theme. Here's what it looks like: I have my terminal set to xterm-256color. I don't know what I've missed, but it makes me sad. Help appreciated.
Alex R
  • 2,201
  • 1
  • 19
  • 32
1 2
3
22 23