Questions tagged [iterm]

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

Filter by
Sorted by
Tagged with
3
votes
0answers
1k views

Iterm2 - Export a single profile's settings for distribution to others

I've been getting used to working with Iterm2 over the past few weeks. I have a very specific profile configuration requirement for a legacy business application. The configuration for the profile ...
3
votes
0answers
156 views

de-grouping iTerm2 windows

Activating iTerm2's "hotkey window" (i.e. drop-down console) also brings to front all other iTerm2 windows. Is there a way to avoid this, making OS X treat each window as a separate application rather ...
3
votes
2answers
2k views

How do I re-associate HTTP links with my browser in OS X?

I installed iTerm2 the other day, and was playing around with it. In the process I seemed to have messed up the handling of HTTP hyperlinks on my system. Sometimes (annoyingly, not every time, which ...
2
votes
2answers
1k views

Where is the option to disable iTerm2 confirm window on Log off?

I have MacBook Pro with macOS Sierra. When I try to Log off system I get annyoing confirm dialog each time. Here is it: It says that it was prompted because of some option enabled. This option here: “...
2
votes
1answer
2k 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 ...
2
votes
4answers
876 views

How do I use cmd+1 as a keyboard shortcut? cmd+2, cmd+3, etc, work

In Preferences > Profiles > Keys I've mapped cmd+1 through cmd+9 but cmd+1 alone does not respond. Does anyone else have this issue? This is for the latest iterm2, v2.1.1 and several earlier ...
2
votes
1answer
331 views

How do you change colour scheme between *panes* inside iTerm2 + oh-my-zsh?

I have seen a lot of solutions that allow changing of tab colour upon remote accessing into a server (see for example: https://gist.github.com/wadey/1140259 and many more). What I want is to change ...
2
votes
1answer
645 views

How did I set this annoying window margin on MacOS app and how to remove it?

Some time ago I pressed a weird key combination that seemed to add a margin to the top and bottom of active application window (in this case, iTerm2). See screenshot below: It doesn't happen on any ...
2
votes
2answers
310 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 ...
2
votes
1answer
1k views

LSOpenURLsWithRole() failed with error 10810 in iTerm2 running tmux on Yosemite

[~%]open ~/Pictures/upload.png LSOpenURLsWithRole() failed with error -10810 for the file /Users/bryanhunt/Pictures/upload.png. Before this update I used to be able to open images, PDFs, etc. from ...
2
votes
2answers
5k views

Can I tell iTerm 2 to change color when I'm root

I would like to tell iTerm2 to have red text whenever I'm root when logged into a server. Note: I'm not able to change any configuration on the remote server.
2
votes
1answer
78 views

Show applications in terminal

I am a developer and I want to access the applications folder through terminal. After typing in cd Applications and then ls. It doesn't show any of the contents inside the folder. I also tried ls -a ...
2
votes
1answer
2k views

How to switch off sharing of history between iTerm2 tabs when setopt command not found

I am experiencing the same problem as in this question: The history is shared between my iTerm2 terminal tabs: how can I switch that off?. As the user describes, my history is shared between different ...
2
votes
1answer
668 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 ...
2
votes
3answers
1k 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 ...
2
votes
3answers
7k views

How to add icons to iTerm2?

I've been looking into making my terminal more visually expressive. So far I've found , and learnt how to import themes and customize color schemes, but I was wondering how people get these cool icons ...
2
votes
1answer
2k views

OS X Terminal window disappears on launch

I just unwrapped a MacBook Pro (OSX 10.9.3). I used the Migration Assistant to bring things over from my old mbp, and most everything seems to be working except something very important: the Terminal ...
2
votes
1answer
1k views

How do I make terminal sessions resume on Lion with iterm2 and tcshrc

My understanding is that with Lion my terminal windows should restore their state. However, this does not happen for me. I wonder if this is because I use tcsh instead of bash? Is there something I ...
2
votes
1answer
76 views

Whole word search in less?

How can I do a whole word search in less? Per this post on a unix/linux forum you can use regex 'whole word' markers \<word\> but that doesn't seem to work for me on macOS 10.13.4 (17E202) in ...
2
votes
2answers
2k views

How can I disable the bell icon/emoji from the title bar in iTerm2?

I find it annoying and get no use from it. Here's a picture of what I'm talking about:
2
votes
1answer
439 views

Available colors in iTerm / terminal.app

I'm trying to make my own colorscheme in Vim, but are struggling to see the available colors in iTerm. Here are my iTerm-color-settings: Here's how I can use it in Vim (for example using ctermfg=...
2
votes
1answer
633 views

ZSH terminal displaying characters and cursor in the wrong place

When my command is long and I move the cursor through it, it jumps randomly to different places and start writing in any location of the command. I'm using OS X El Capitan (10.11.6) and have ...
2
votes
1answer
19k views

How can I get zsh to show the current path in the prompt?

I am not able to see path of my current directory or even username in terminal while using zsh. I was able to see it until few days back. Now it just shows blank. I tried uninstalling oh-my-zsh but it ...
2
votes
1answer
724 views

iTerm2 runs my .zshrc twice

When starting a terminal in iTerm 2, my .zshrc is executed twice. Possibly has something to do with the "last login" printed at the top of terminal by iTerm? Anyone know how to fix this? Example ...
2
votes
4answers
2k views

Alfred Terminal / Shell Command does not work

In Alfred, if I type > ls must open iTerm2 with that command. Well, does not work for me. In Application if I select Terminal instead of iTerm2, works. If I select Application → Custom, it shows ...
2
votes
2answers
468 views

History commands render incorrect on Bash Vi mode

I'm having this werid and really annoying issue in bash vi-mode. Env: Mac 10.9.2, iTerm 2 1.0 or Terminal.app, $TERM={screen-256color|xterm-256color|xterm|vt} Repro steps: Run some long commands (...
2
votes
1answer
82 views

iTerm2: Open Windows as Tabs

Up until recently, multiple iTerm2 windows showed up as tabs for me, as if they were themselves tabs. That is, I had two tab hierarchies, one for windows (like a super tab) and one for tabs. Here is ...
2
votes
1answer
129 views

iterm2 first tab transparency differs from default

I set up iTerm2 colours/backgrounds, however the first tab is always "lighter" (i.e. more transparent) than all the other tabs. When I set transparency in the profiles, I can see every tab except the ...
2
votes
2answers
6k views

Creating aliases for iTerm 2

I use numerous aliases set at a given UNIX environment. For example my current fish shell under OSX have these below gm -> git merge dk -> docker kill and so on. Now the challenge is I use iTerm 2 ...
2
votes
1answer
398 views

status line in iterm integrated with tmux

I was trying to set the iTerm and tmux integration and found that panes could be displayed as iTerm2 window splits, if I run tmux -CC. But there is a problem, this 'simulation' of tmux does not have ...
2
votes
3answers
3k views

Why does F4 not work in MacOS X (Touchbar macBook, or macBook Air)?

I'm using iterm2 together with tmux and I need the function keys. Ever since I got the TouchBar Macbook Pro and upgraded to HighSierra, the F4 key became disfunctional in iTerm2 and emacs. The F4 key ...
2
votes
1answer
574 views

Is there a Mac FTP client that will open SSH at current location?

I often find myself looking at files in an FTP client and I need to do something from the shell. My workflow is to open terminal/iTerm, SSH in to the same server, and navigate to where I need in the ...
2
votes
2answers
357 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?
2
votes
1answer
986 views

How can I set up seamless navigation of vim and iterm2 splits?

I am trying to map my C-h, C-j, C-k, C-l keys to be able to navigate vim (running in iterm2) splits but if there is no vim split to move to it should figure out that I want to jump to a different ...
2
votes
1answer
1k views

iTerm2: Saving Global Shortcut Keys

In iTerm2, I can define "Global Shortcut Keys", which is great. I can also "Load Presets" within this view. But how can I save "Global Shortcut Keys"? I don't see an option to do this anywhere: .
2
votes
1answer
417 views

How to change default LC_TYPE?

My OS X (Mavericks) seems to be setting LC_CTYPE environmental variable to UTF-8 by default. How can I change the default? I need LC_CTYPE to be en_US.UTF-8. There's a catch: I don't want to ...
2
votes
0answers
32 views

iTerm2 login fails after update

Problem: After updating iTerm2 to version 3.3.6, I started getting the following message whenever opening iTerm2 or opening a new tab in iTerm2. Login incorrect login: I could then login and use the ...
2
votes
0answers
345 views

Difference in font rendering between iTerm and Terminal.app

I've just installed iTerm 3.2.0. I'm using default settings and noticed that fonts look slightly different, compared to Terminal.app. A bit thinner, and glyph heights (or maybe distances between lines)...
2
votes
1answer
427 views

iTerm2: Option + Number (0..9) key not working

I have a German keyboard layout and need e.g. Option+7 to write a pipe (|). Option+Letter (Letter=a..z) works fine, but Option+Number (Number=0..9) is not producing anything. However, if I press ...
2
votes
0answers
321 views

How to stop iTerm2 closing tabs on error? [duplicate]

iTerm2 always closes the tab/window on error. By contrast, Terminal keeps it open so you can view the error. How can I prevent iTerm2 from automatically closing the tab/window on error?
2
votes
0answers
254 views

Can I modify iTerm window titles for some but not all running commands?

I was looking for a solution to auto set custom title in the terminal based on what command is being run on the current terminal. So, rather than java showing in many tabs - I'd love to have it pick ...
2
votes
0answers
283 views

bash in iTerm2: how to log variables like $TERM_SESSION_ID into command history

To help with recovering history across restarts etc I would like to get some key data, like $TERM_SESSION_ID, stored in my command history. This would be preserved when the command response output in ...
2
votes
0answers
410 views

Display single double width chars in iterm3

I have a battery-emoji in my prompt when the laptop is on battery power. Because this is a double width char and iterm has issues with it, my prompt is broken. One char after the prompt sign is ...
2
votes
0answers
217 views

Why does fish shell create a hidden process in iTerm2

I've moved from bash to fish shell in iTerm2. However, whenever I start iTerm2, I receive the following error message: A session ended very soon after starting. Check that the command in profile ...
2
votes
0answers
75 views

Character Mode settings in macOSTerminal?

I have an old-school text-based Citadel BBS running in DOSBox on a Raspberry Pi Zero, accessible via telnet at anthropocene.sytes.net:13000. It runs smoothly for callers using PuTTY (with line editing ...
2
votes
0answers
101 views

iTerm white bar showing over tabs

Since upgrading to Sierra on my new 2017 MBP i've got a very annoying bug that I can't seem to find a solution for. I've got a white bar showing over my iTerm window every time iTerm is the front-...
2
votes
0answers
94 views

iTerm2: Select Text keybinding disappeared

I seem to have inadvertently removed the ability to select text using the keyboard: e.g. Shift+←. I've scrolled through the default key bindings in both Preferences > Keys and Preferences > Profiles >...
2
votes
0answers
58 views

Service shortcut does not work in Finder?

I've added a service through Automator, which opens iTerm2 in the current folder. It works when I click in service menu. However when I try to assign a shortcut for it, it won't trigger. Tried ...
2
votes
1answer
840 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 ...
2
votes
0answers
36 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 ...