Skip to main content

Questions tagged [iterm]

iTerm is an enhanced terminal emulator for OS X and macOS

Filter by
Sorted by
Tagged with
584 votes
14 answers
213k views

How to set keyboard shortcuts to jump to beginning/end of line? [closed]

I can see that Ctrl+left/right jumps to the beginning/end of line. How to change this to Cmd+left/right arrow?
chris's user avatar
  • 7,413
488 votes
4 answers
193k views

How can I scroll up more (increase the scroll buffer) in iTerm2?

How can I scroll up more on iterm2 to get full output? At times, for example if I am doing unit tests, the errors are so large than I need to keep scrolling up to which I cannot scroll up anymore but ...
Mohamed El Mahallawy's user avatar
379 votes
8 answers
237k views

How to export iTerm2 Profiles

I needed to reformat my computer and now I'm having trouble copying the settings/profiles over. I copied the files in ~/Library/Application\ Support/iTerm/ I also copied ~/Library/Preferences/com....
Alex Cory's user avatar
  • 11.5k
355 votes
6 answers
120k views

iTerm2 keyboard shortcut - split pane navigation

I have been a long time user of the standard Mac Terminal. Decided to experiment with iTerm2 after hearing good things about it from my colleagues. One of the more useful features I am seeing on ...
Calvin Cheng's user avatar
  • 36.2k
262 votes
27 answers
124k views

lose vim colorscheme in tmux mode

I'm running iterm2 and when I'm in tmux mode the colorscheme I have set in vim does not show up. Only the color scheme I've set in iterm. If I run vim from shell the colorscheme appears correct - its ...
tristen's user avatar
  • 4,685
188 votes
8 answers
54k views

How do I make iTerm terminal notify me when a job/process is complete?

A notification center notification would be ideal but growl, bounce dock, sound, etc would be fine, too (or if this can only be done in Terminal.app I'd be willing to switch back). Is there an option ...
truth1ness's user avatar
  • 4,981
163 votes
5 answers
91k views

ZSH iterm2 increase number of lines history

Not sure if this is zsh, iterm2 or the interaction between them. Trying to change the number of recallable lines in the terminal - not the command history, the output history. In .zshrc I have : ...
xxjjnn's user avatar
  • 15k
138 votes
5 answers
23k views

iTerm2: How to expand split pane temporarily?

Is there a way to temporarily expand a split pane into full tab and go back again when done? I am looking for a keyboard shortcut to do so. The use case is to be able to temporarily switch to full-...
Pratik Khadloya's user avatar
131 votes
4 answers
42k views

Tmux vs. iTerm2 split panes

Why should I use tmux when iterm2 has split panes? I have never used tmux, and want to know if there are advantages to using that in my workflow instead of the split pane features iterm2 has. I ...
pizza247's user avatar
  • 3,877
100 votes
1 answer
31k views

Bash keyboard shortcuts in iTerm like Alt+d and Alt+f [closed]

Everyone at work recommended iTerm2 to me instead of the native Terminal. But iTerm2 doesn't seem to allow me to use bash shortcuts like Alt+B and Alt+F to jump back/forward between tokens, or Alt+D ...
rewolf's user avatar
  • 5,791
98 votes
2 answers
16k views

iTerm2: Stopping the inactive pane from dimming

I'm using irssi in one pane and nicklist.pl in the other, and whenever I'm in the irssi pane, the nicklist pane is dimmed: How do I stop the inactive pane from dimming?
callumacrae's user avatar
  • 8,393
89 votes
4 answers
31k views

How to delete a word in iTerm in mac os

I am using iTerm as a terminal in my mac. I am not able to delete a word in command line for ex in command cd /path/to/dir, i want to delete just path word , then how can i do that in iTerm. ...
Rohit's user avatar
  • 961
88 votes
11 answers
76k views

Incorrect colors with vim in iTerm2 using Solarized

I am having a strange issue with iTerm2, in terminal vim (non-gui) and the solarized color scheme. First, I have set iTerm2 to use the dark solarized colour scheme. I am also using solarized for vim. ...
Zameer Manji's user avatar
  • 3,015
84 votes
3 answers
36k views

How to turn off word wrap in iTerm2?

How to turn off word wrap in iTerm2? Is there a specific command to do so or in the preferences? I am trying to avoid having the text run down to the next line. I would rather scroll side to side.
Beast_Code's user avatar
  • 3,167
78 votes
10 answers
70k views

iTerm2 keyboard shortcut for moving tabs around

Say I want to place one tab next to another. Currently I do this by clicking and dragging. This increases productivity because if I'm switching between 2 regular tasks in iTerm I want to place the ...
Eddy's user avatar
  • 6,761
67 votes
3 answers
41k views

iterm2 default window size

I'm trying to find a place where to set the default window size on newly created windows. In iterm1 there was display profiles, which I do not see iterm2. http://iterm.sourceforge.net/usage....
Cmag's user avatar
  • 15.5k
57 votes
5 answers
53k views

iTerm2 Transparent transparent background for inactive windows

The native MacOS Terminal has an ability to set transparency for both in-active and active panes. iTerm2 has the transparency for active backgrounds, for some reason, I can't find the inactive one or ...
user avatar
57 votes
3 answers
20k views

Create New Tab Sessions with the same working Directory

Often in workflow you are working within a directory and then need to create a second terminal or session to the same directory. TAB 1 #~/home cd really #~/home/really cd long #~/home/really/long cd ...
StanleyZheng's user avatar
  • 4,108
55 votes
5 answers
13k views

when launching terminal macos get error Class ATCRTRestoreInfoFTABSubfile is implemented in both

When first launch the termainal always get this error. objc[9318]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x207c11eb0) and /Library/Apple/System/...
Victor Orlyk's user avatar
  • 1,683
48 votes
6 answers
19k views

iTerm2 – scroll less output with mouse

I just switched from OSX Terminal to iTerm2, and I seem to have lost one piece of functionality. In Terminal, I could scroll through output of the less command with my mouse, because I had installed ...
Ruben Verborgh's user avatar
48 votes
7 answers
32k views

iTerm 2 profiles

I have recently switched over to iTerm2 and love it. I am wondering though if there is a way to use profiles to correspond to what environment/specific machine you are on. Say if I am doing tasks in ...
Miles McCrocklin's user avatar
48 votes
4 answers
26k views

How to select text in iterm with Shift+Arrow?

On most mac applications Shift+Arrow selects text but in iterm it just moves the cursor without selecting. How do you get it to select the text? Would also be curious if there's a way to do this in ...
truth1ness's user avatar
  • 4,981
47 votes
4 answers
18k views

How can I get mouse selection to work in emacs and iTerm2 on Mac?

after turning on xterm-mouse-mode, any click on the in the screen returns "mouse-1 is undefined". What should I be defining "mouse-1" as? Is there some reason my mouse clicks are returning this ...
Chris's user avatar
  • 3,284
43 votes
1 answer
13k views

iTerm2 - hide split pane title bars?

After recent update of iTerm2 the split panes look different: This is how it looked before (some random image found on the Internet): Is there a way to get the original look back or do I have to get ...
Martin Janiczek's user avatar
39 votes
7 answers
169k views

Why do you need to source .zshrc for every new shell in iTerm?

I've used Iterm2 with zsh everyday for the past 3 years, but I got a new computer and had to set it up again. The problem is that when I run ~/.zshrc it works fine, but I have to do it on every new ...
Trevor's user avatar
  • 1,364
36 votes
7 answers
52k views

iterm vim colorscheme not working

When I run vim from the command line in iTerm, syntax highlighting doesn't seem to work locally. In vim for example I have installed a nice colorscheme that works quite well in MacVim but it would ...
Derek Organ's user avatar
  • 8,413
35 votes
1 answer
13k views

how to use the trackpad to scroll in nano using iterm2, the way it works in terminal.app?

I am used to editing in nano, and with terminal.app it's easy to quickly move up and down the file using the scroll gesture. I am trying out iTerm2, but now the scroll gesture just makes iTerm scroll ...
libbynotzoey's user avatar
33 votes
4 answers
39k views

Why don't git colors show up in iTerm2

So I have my gitconfig setup to do colors. In Terminal it works great, looks fine. In iTerm2, however, the colors don't appear for my gitconfig at all unless I set the reverse property for git. Then ...
Robert Ross's user avatar
  • 1,925
31 votes
5 answers
10k views

Homebrew fatal: needed a single revision (MacOs Sierra)

Not sure if this problem is related to upgrading to MacOs Sierra, but since that moment this error occurs when I run 'brew update' → brew update Checking out v1.0.0 in /usr/local/Homebrew/Library/...
Martin van Houte's user avatar
28 votes
2 answers
17k views

Close a split screen/window in iterm

Does anyone know what the shortcut (if it exists) to close an active pane in iterm. I am using the beta version 2.9 and have tried configuring it in preferences to no avail. This is what I have so ...
Wings's user avatar
  • 1,006
26 votes
4 answers
17k views

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. ...
kenny's user avatar
  • 3,589
26 votes
2 answers
10k views

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's user avatar
  • 791
26 votes
2 answers
5k views

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 ...
fregas's user avatar
  • 3,252
26 votes
1 answer
6k views

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 ...
user3214546's user avatar
  • 6,751
25 votes
4 answers
14k views

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 ...
Dolan Antenucci's user avatar
24 votes
1 answer
11k views

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 ...
user1541776's user avatar
23 votes
6 answers
56k views

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 ...
purinkle's user avatar
  • 917
23 votes
1 answer
43k views

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's user avatar
  • 351
21 votes
3 answers
11k views

"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 (...
Dan's user avatar
  • 3,546
19 votes
4 answers
11k views

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, ...
chbrown's user avatar
  • 11.9k
19 votes
4 answers
25k views

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 ...
Hang Chen's user avatar
  • 823
18 votes
3 answers
9k views

In iterm how do I show the start time of a command

I would like to see when I typed a certain command. How do I display this in my terminal prompt?
rose specs's user avatar
  • 1,125
18 votes
5 answers
11k views

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's user avatar
  • 2,137
18 votes
3 answers
9k views

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's user avatar
  • 181
18 votes
2 answers
12k views

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 ...
Eddy's user avatar
  • 6,761
17 votes
2 answers
17k views

How do I invert the color scheme on iterm2?

I'm using iterm2 (v3.0.14) on Mac Sierra. How do I invert the color scheme on my terminal? That is, right now, the default is a black background with white lettering, and I would prefer a white ...
user avatar
16 votes
4 answers
7k views

Multiple tabs with tmux / tmuxinator and iTerm2

I would like to open all my useful stuff like here in iTerm2: Not like this: I'm using tmuxinator I've defined some tabs. I wonder if it's possible to get the former behaviour at all.
Tomek Wałkuski's user avatar
16 votes
4 answers
9k views

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 ...
Alex R's user avatar
  • 2,211
15 votes
0 answers
1k views

How do I import a .terminal profile in Iterm2?

If I have a .terminal profile - created with the default Terminal app for Mac - how do I import it in Iterm2 ?
nicdelillo's user avatar
15 votes
1 answer
870 views

iterm, unable to fork, too many processes? [closed]

I wasn't able to open new iterm window due to the message, the photo above. Even though t definitely looks running too many processes,I think mac wasn't running too many processes. I've checked ...
Travelholics's user avatar

1
2 3 4 5
7