iTerm is a third party replacement for the built-in Terminal application.

learn more… | top users | synonyms (1)

0
votes
0answers
9 views

How can I set iTerm2 key mappings from a shell script?

I try to keep many Mac computers and user accounts in sync. I automate the change propagation using shell scripts which are synced across machines via git using github which has worked pretty well. ...
2
votes
1answer
103 views

Changing iterm2 Terminal Color

Is there a way to bold the color of the current active terminal tab in iterm2? I do not see an option to do that on the appearance tab of preferences. I know I can change the tab style, but I still ...
3
votes
3answers
142 views

Automator service script ALWAYS launches application, disregarding conditional

I wrote a little service script to open an iTerm terminal window on an arbitrary folder on Finder. I want it to check if iTerm is running, and if it is to open the terminal session in a new tab ...
3
votes
1answer
46 views

Is it possible to temporarily remove margin from iTerm2 window?

I just wondering whether its possible to remove the left, right and top margin (or just all margin) temporarily in iTerm2 windows. My goal was to make the vim-airline looks better in iTerm2 by ...
1
vote
1answer
24 views

Change iTerm2 profile depending on current directory

Using my .bash_profile, I used to change my iTerm2 profile per machine with the following command: echo -e "\033]50;SetProfile=ssh\a" Now, I want to change it depending on my current working ...
0
votes
1answer
75 views

Weird null characters ^@ output on iTerm 2 / zsh when a command is running

When I m using iTerm 2 (with zsh), and a command is running at the prompt, every minute or so ^@ (NULL character) got displayed on the terminal. Below is an example, using socat, but other commands ...
2
votes
2answers
3k views

LANG variable wrong in iTerm2, where's the bug?

Today I noticed that when opening TortoiseHG the app was in Dutch (partially, not fully translated it seems). Looking around in my environment I found out that LANG=nl_NL.UTF-8. It is indeed true ...
0
votes
1answer
30 views

iTerm text search is in reverse order

I'm running iTerm2. When do a text search ⌘ F, pressing Return moves the highlighted occurrence back (the previous occurrence). Is there a way to make it move to the next (forward) occurrence?
103
votes
9answers
79k views

What is the difference between iTerm2 and Terminal?

I keep hearing that iTerm2 is much better than Terminal. I downloaded iTerm2 today and played around with it, but I couldn't see what is so much better about iTerm2. iTerm2 seemed just like Terminal. ...
0
votes
1answer
39 views

iTerm new window starts minimized?

For some reason, whenever I start iTerm or press CMD+N, it starts small in the top left corner, but instantly minimizes to my dock Is there a config that could be causing this? Where should I look ...
0
votes
1answer
39 views

Opening a specific page on Mac Preview from Terminal

How I can modify the open filename.pdf command so that I can open a desired page number directly without having to scroll down.
4
votes
3answers
297 views

Remove iterm from cmd+tab apps

I was using TotalTerminal to get visor like terminal on a shortcut. But TotalTerminal is abandoned so I have switched to the iTerm2. My problem is that when I use a shortcut to trigger iTerms visor ...
3
votes
3answers
860 views

Terminal/iTerm2 issue: reverse-i-search trims off command

I've been having this issue since 10.9. cd into a reasonably long path, e.g., cd /Volumes/Storage/backup/long/path Enter a moderately long command, e.g., curl -X GET http://localhost:8888 ctrl+R, ...
1
vote
1answer
104 views

Open the same terminal without switching spaces

I'm looking for an AppleScript (or anything, really) that will do the following: If a Terminal window is open in the current space, bring it to the front. If not, open a new one in the current ...
1
vote
1answer
55 views

I can't delete in tmux

I have searched around and the closes thing I could find to my issue is this: http://stackoverflow.com/questions/23848061/cannot-get-delete-key-to-work-with-tmux-and-osx I am running OSX and I am ...
1
vote
1answer
51 views

OS X copy paste into Terminal adds fdbf bfb9 b083 to beginning and end of selection

For the life of me, I can't figure this out. When using a browser (doesnt matter which), if I select text, then paste in Vim or Neovim, I see characters added to the beginning and end of my ...
37
votes
4answers
10k views

Using Alt/Cmd + Right/Left Arrow in iTerm

Is it possible to move between words in iTerm using Alt + Right/Left Arrows ? Now if I press Alt+Left I will get '[D' and '[C' if I press Alt+Right.
3
votes
0answers
63 views

Selecting text while jumping with cursor in iTerm2

I would like to know if it is possible to get text-editor-like functionality for selecting text in iTerm2. For example, in Sublime Text 3, I can do the following: ⇧ ⌥ → = Select ...
1
vote
1answer
61 views

iTerm2 does not show username, machine name, time

On my new mac machine, I could not do autocomplete for Git when I hit Tab. So I thought to modify the terminal and found certain things on this link. I may have messed when I installed iTerm2, ...
2
votes
2answers
105 views

How can I get iTerm 2 to copy only what I select?

iTerm2 has a very nasty habit of making an assumption of what I want to copy and paste from the terminal. Instead of just allowing me to copy exactly what I highlight, it will expand to what it ...
59
votes
4answers
41k views

iTerm as a slide-out terminal from the top of the screen

I have installed iTerm2 and was hoping I'd have something like guake (Yes I just switched from Ubuntu). I mapped the hotkey to a button of my choice and it works fine, but I miss the ...
0
votes
0answers
122 views

Text selection in terminal without mouse - moving cursor using arrow keys

I recently moved from a well-configured Ubuntu to Mac. I used Emacs for many years but I am too lazy to re-install it (and re-configure it). One of the useful features in Emacs shell is that you can ...
1
vote
0answers
74 views

ITerm2 Console connection to Cisco equipment Control-A does not work

I connect to Cisco Equipment via console cable and am currently trying to use ITerm2. The problem is I cannot get the Control-A (Move to beginning of line) command to work. I've tried to add in ...
10
votes
5answers
3k views

Option + click in iTerm

In Terminal, Option + click allows me to place my cursor at any point on the current line-- great for editing really long commands. How can I do this in iTerm2? Update: According to this page, the ...
15
votes
5answers
7k views

iTerm2/Terminal full screen

Why is it not possible to have iTerm2 or Terminal app take up the full available space on the screen. Let me show an example: It's hard to see but if you look on the right and bottom edge, there is ...
0
votes
1answer
36 views

Increase amount of text copied in iterm2

When I select text in iTerm2, the text it copies cuts off at after a certain (seemingly arbitrary) point. I did a few tests and its usually between 800 and 1500 bytes of input. Why is this, and how ...
60
votes
8answers
32k views

How can I save tabs in iTerm 2 so they restore the next time the app is run?

Can I save tabs on exit in my iTerm 2, so I don't have to open same directories again after restart? Like Chrome does, for example. I couldn't find such option in settings. Maybe "Arrangements" is ...
3
votes
1answer
92 views

In iTerm, how can I change alt+delete to ignore slashes?

I set up my iTerm to work a lot like OSX does in other text fields, eg ⌘ Command+Delete = delete line backward, ⌥ Option+left arrow = "move cursor back one word" and ⌥ Option+Delete = delete word ...
4
votes
1answer
126 views

update_terminal_cwd demystified please?

I am trying to find the documentation on what, exactly, the printf command is doing in update_terminal_cwd. If you didn't know already, the update_terminal_cwd function is defined (at least on Mac OS ...
4
votes
2answers
144 views

terminal custom commands source every time

After following this comment I added all my startup/alias commands to ~/.bashrc file and in ~/.bash_profile I added source ~/.bashrc But still my aliases are not working. I have to manually source ...
1
vote
2answers
57 views

Why does my iTerm2 launch with an X in it's path?

After upgrading to El Capitan, then working on installing Rails, my iTerm2 shell now opens with x >, instead of just >. Can someone please explain why this is happening, and help me figure out ...
3
votes
2answers
622 views

Change iTerm2 Default profile preset with “defaults write…”

I want to do this in my dotfiles script. I managed to download the preset I want using curl and open it, but I don't know how to set it in the default profile: curl -L ...
0
votes
1answer
171 views

How to get iTerm to properly send the CTRL-. sequence?

Emacs uses a lot of C-. and similar keyboard sequences. iTerm doesn't send the key sequence C-. itself, but I've found that I can map C-. into an escape sequence or hex code or text in iTerm's ...
3
votes
3answers
2k views

Sending Control+Alt+ <char> to terminal in iTerm2

When I press Control + Command + i I would like iTerm2 to send the shortcut as C-M-i (i.e. ctrl+alt+i) to my terminal. I have How can I do that? I have tried with the following with no luck: ...
1
vote
1answer
1k views

iterm + tmux isn't allowing me to scroll up with the mouse

I recently rebuilt my system and everything works except I can't scroll my (iterm2) terminal window back to look at commands and output that have scrolled off the screen. Without tmux I can scroll ...
1
vote
2answers
44 views

How do I search quickly in iTerm 2?

When searching in iTerm2, some kind of of fancy live highlighting thing seems to kick in even before you hit enter. When the scrollback buffer has more than a few thousand lines in it, this search ...
0
votes
1answer
25 views

'soft return' in iTerm2

I'm just wondering is there a way to enter a new line in iTerm 2 without executing the line being typed? I am looking to make use of some relatively long commands to automate some things, but not ...
4
votes
1answer
1k views

unknown option: mode-mouse with iterm, tmux

Reset my computer and iterm2,tmux now complaining about my .tmux.conf having setw -g mode-mouse on set -g mouse-select-pane on set -g mouse-resize-pane on set -g mouse-select-window off set -g ...
4
votes
3answers
6k views

chsh doesn't change $SHELL

I'm having some difficulties in changing the value of $SHELL in OSX's iTerm app. iTerm is starting in /bin/zsh, but the value of $SHELL doesn't seem to change. What I've done: Changed "command" as ...
4
votes
0answers
718 views

How to prevent iTerm2 from creating overlaps and broken lines after pasting multiline chunks of text?

If I paste multiline chunks of text into iTerm2, I always a get mess of output. It seems limited to only some programs running interactively (such as Bash, IRB - Python / VIM work flawlessly). Using ...
2
votes
1answer
342 views

iTerm2 output broken since upgrade to El Capitan

Since I upgraded my OS X to El Capitan (10.11) the output of iTerm2 is completely messed up. See this example screenshot (iTerm2 on the left, Terminal.app on the right): Update I'm using iTerm 2.1.4 ...
12
votes
2answers
3k views

How to open a new tab in iTerm in the same folder as the one that is open?

I'm using iTerm for my command line needs, and when I open a tab using ⌘T I want it to open the tab cd'ed to the same location as the tab that was open when I hit ⌘T (instead of opening in my ...
0
votes
1answer
192 views

Any reason not to change the root shell to bash?

The default shell for root (at least on Yosemite) is /bin/sh. Would there be any problem to changing it to bash (or better yet zsh)? As far as a I know bash at least is backward compatible. I need ...
0
votes
0answers
21 views

Odd issue with iTerm2 (built from Git repo)

I'm currently using iTerm2 version 3, built from the GitHub repo. My default shell is bash, but I have iTerm set up in a way to default to using zsh on startup. I had this set so that the default ...
10
votes
2answers
10k views

iTerm2 doesn't read com.googlecode.iterm2.plist

I am iTerm2 (1.0.0) user. I know how to create profiles, by using iTerm settings or modifying com.googlecode.iterm2.plist file. For convenience, I will use .plist to indicate ...
5
votes
3answers
5k views

Remapping keys in iterm2

I'm trying to remap some of the default key combinations in iTerm2, and would like to understand what is going on when I bind keys to "Send Hex Codes". A previous post helped me get started with ...
1
vote
0answers
22 views

Automatic Software Update reboots are almost always canceled

Apple's Automatic Software Updates require a reboot from time to time which is scheduled when the computer is not in use. In my case these reboots almost always fail because some non-Apple program ...
0
votes
0answers
336 views

How can I stop callservicesd errors I find in Console?

I posted this to some other forum and found no luck. I'm learning Terminal, coding, and scripting. Every so often I check my Console just to see what's up. (Often I don't understand it all, but it's ...
5
votes
2answers
566 views

iTerm2: How to change the color used to highlight search results?

It seems that iTerm2 is hardcoded to highlight search results using a yellow background color. I tried both the latest release and the nightlies but could not find a way to change that color. Did I ...
0
votes
1answer
60 views

How does iterm2 work?

I am curious how does iterm2 work? I mean it would be a gargantuan task to re-implement all the unix commands and I guess it somehow uses the built-in terminal under the covers to run the actual ...