Questions tagged [iterm]

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

Filter by
Sorted by
Tagged with
8
votes
2answers
24k views

ls output does not have color while SSHing to another machine with iTerm2, but does with Terminal

Just as the title says, when I ssh to my work Fedora server with iTerm2 I don't get color ls output. When I ssh to the same server with OS X's default Terminal app, ls color output works just fine. ...
8
votes
1answer
3k views

How to show italic in vim in iTerm2

The beloved Solarized colour scheme seems to apply an italic face for comments, but when I am using it in vim in iTerm2, it does not. So, everything including comments are displayed in Roman (normal) ...
8
votes
2answers
3k views

Can I get mac notification when a Tab has new output in iTerm2?

You know, iTerm2 will change the color of the tab to red or purple. But sometime when I run a long job in one tab, I have to check if it's done frequently. So.. can I get notification when there's new ...
8
votes
2answers
1k views

Prevent iTerm2 from opening new terminal from dock

I just switched from TotalTerminal to iTerm2, and the feature I used the most was the visor. When I used my shortcut key (option + `), it'd drop a terminal from the top of the screen that i could tuck ...
8
votes
4answers
16k 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 /...
7
votes
2answers
13k 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 ...
7
votes
1answer
5k views

Make iTerm2 window history larger

In iTerm2 3.1.5 on macOS High Sierra, I want to be able see more of my history as I scroll. Currently the scroll history is not enough for me. How can I increase the amount of data history I see while ...
7
votes
2answers
34k views

zsh themes loaded but not working

I set theme in .zshrc file: ZSH_THEME="random" And when open new tab, it shows that new theme is loaded: [oh-my-zsh] Random theme '/Users/maks/.oh-my-zsh/themes/gozilla.zsh-theme' loaded... mac ...
7
votes
1answer
4k views

How to start preview from command line and get back to the terminal when I press ESC?

I do want to add file view support for media files to midnight commander and I something that can be called form the command line that would start preview but that will return to my terminal when I ...
7
votes
1answer
12k views

Unable to install iTerm2 using brew

I am trying to install iTerm2 terminal emulator on macOS Sierra 10.12.1 using Homebrew. I tried to download iTerm2 from its main site. However, the page is taking too long to respond. So, after ...
7
votes
1answer
4k views

Upgrade bash without using the terminal to fix iterm issue dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib

Question How can I upgrade bash or otherwise get a CLI to work? Error dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib Referenced from: /usr/local/bin/bash Reason: ...
7
votes
1answer
9k views

What are the differences between terminal types supported by iTerm2?

I am looking for a brief comparison of the terminal types supported by iTerm2, mainly to see what setup to pick in order to minimize problems. Mainly, I am connecting with Linux (Debian/Ubuntu) ...
7
votes
3answers
8k views

How can I set the iTerm2 window title to be the same no matter which pane is selected?

I'm aware that the iTerm2 window title can be set with echo -ne "\033]0;"Title goes here"\007" but that appears to only set the title for a single pane. When I switch panes, the window title is ...
7
votes
1answer
17k views

How to remap tmux split pane keys?

On my linux machines, for my terminal shell I have tmux keys mapped to allow me to split windows and then switch between new panes. With or without these mappings I can't figure out how to remap the ...
6
votes
1answer
2k views

iTerm2 - Split vertically with current profile with same working directory

When splitting vertically with current profile by using the keyboard shortcut, Command + D, is it possible for the new iTerm2 window to have the same working directory as the current one? By default, ...
6
votes
1answer
6k views

How do I configure a global hotkey for iTerm 2?

I'm a new OSX user, and I've used Linux for the past 1.5 years, and I really can't live without dropdown terminal. So I googled, and came across this question: iTerm as a slide-out terminal from the ...
6
votes
2answers
11k views

How do I write a script that opens an iTerm2 window and runs a command?

What I'm doing I'm using iTerm2 Build 3.0.15 and writing a script that opens a new window and prints "hello world" to the screen. Really, I'm interested in being to run any command but using echo "...
6
votes
1answer
3k views

Ctrl + Cmd + Return doesn't maximize active pane in iTerm2

The split panes functionality is the primary reason why i use iTerm2. I can maximize/unminimize the active pane by using the View -> Maximize Active Pane menu item. But nothing happens when I press ...
6
votes
3answers
6k 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: Any ...
6
votes
2answers
4k views

iTerm2, unicode and sympy

In my both Mac (OS X Mavericks) and Ubuntu machine, I have installed sympy that is a python library for symbolic mathematics. Part of sympy is the pretty print functionality that uses unicode ...
6
votes
1answer
9k views

How to enable true color mode in an OS X Terminal?

NeoVim recently added support for True Color mode in terminals that support it. I've tried both Terminal 2.5.3 (343.7) and iTerm 2.1.1, and neither one can display more than 256 colors by default. ...
6
votes
2answers
3k views

iTerm2 does not kill processes when tab is closed

If I work in terminal, and, say run rails server in it attached to the current terminal and then close the tab it will not terminate the process making it hang around indefinitely without ability to ...
5
votes
4answers
18k views

What is the Applescript command to show or hide iTerm2 window

Does anybody know the Applescript command to show or hide a iTerm2 terminal window? I use iTerm2 in a guake style command window and currently using one window and many tabs. My use case: I managed ...
5
votes
2answers
11k 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 ...
5
votes
4answers
4k views

How should I start a new iTerm terminal with shortcut?

I've created a service in automator and assigned a shortcut, and it works. But this doesn't start a new iTerm terminal. It only reveals the already running one How can I start a new "tab" or a new "...
5
votes
1answer
1k views

Why is .bash_history periodically wiped?

This is the second time it's happened. I just tried grep-ing some historical commands and came up empty. a look at my bash history shows that it's practically empty. Like it's been wiped clean. I use ...
5
votes
2answers
3k views

open iTerm drop down console on different screen

I use iTerm since a few days, and when i press my hotkey, it'll drop down nicely, from top of the screen, but ... on the wrong one. I have a macbook pro with mountain lion, and i connect it to a 24" ...
5
votes
1answer
9k views

iTerm2 - Accessibility and Full Disk Access

Just installed iTerm2 and it asked me change some settings in Security & Privacy of macOS. At the moment I gave "Full Disk Access". Under "Accessibility" I see iTerm2 listed but without the ...
5
votes
3answers
1k views

Terminal Closes Immediately

I accidentally deleted some files from my Applications directory. I don't recall exactly what but some of them included the Cellar directory. Now, each time I try to open the terminal, it opens the ...
5
votes
1answer
2k views

How to have iTerm2 hotkey window slide up and down instead of fading

I'm using iTerm2, and my hotkey window used to slide down and then back up. A while ago, the animation changed to having it fade in and out. Is there any way to get it to go back to sliding? I prefer ...
5
votes
1answer
831 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 ...
5
votes
3answers
6k 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, ...
5
votes
2answers
10k views

iTerm2 terminals close immediately with “argpath=login error=No such file or directory”

Whenever I try to open a new terminal window in iTerm, it closes right away after displaying this: ## exec failed ## argpath=login error=No such file or directory Does anyone know what is causing ...
5
votes
3answers
2k views

How do I copy to the OSX clipboard from a remote shell using iTerm2?

Using iTerm2, I start an interactive SSH session to a remote Linux machine (where pbcopy is not available). On the remote Linux machine I would like to capture the output of some arbitrary command (e....
5
votes
2answers
846 views

Colors are different when SSHing onto a Linux machine from iTerm2. How can I standardize them?

Currently, when I SSH onto a Linux machine, the ls output colors and syntax coloring in VIM are different from the colors on my local machine. The colors shown are not defined in my Profile...Colors......
5
votes
2answers
1k views

How to remove the annoying quit message by closing iterm2 - prevent logoff/shutdown/reboot

If I quit iTerm2 I always get the "Quit iTerm2? All sessions will be closed." message - independent of the settings in preferences. I don´t tick the three options under "General/Closing" - all ...
5
votes
2answers
3k views

iTerm2 save window/tabs on exit?

I tried to save a window arrangement but when I open iTerm it opens two windows: one with my saved arrangement one with no arrangements How can I make iTerm2 remember my Window/tabs layout?
5
votes
1answer
1k views

How to change color profiles on ssh iterm2 on SSH?

mac os x lion; Using Iterm2; I wish to change my iterm2 color profiles if I do ssh on terminal. Can this be done ?
5
votes
1answer
2k views

Open iTerm2 SSH session in new window instead of new tab

Now that I figured out how to set iTerm2 as the ssh:// URL handler, I'd like iTerm2 to respond to an ssh URL by opening a new window instead of opening a new tab in an existing window. Is this ...
5
votes
1answer
508 views

iTerm2 shortcut for deleting selected

I've set some shortcuts in iTerm2, but I cannot find how to set MS Windows style cut functionality. I want to select some text (which I am able to) and then cut/past it somewhere else. I want also to ...
5
votes
3answers
3k views

Go2Shell stopped working with iTerm2

I am on Yosemite and have used a (seemingly older version) of Go2Shell to open Terminal windows at the current Finder location. This worked flawlessly for a long time, until something, suddenly broke ...
5
votes
2answers
1k views

Why are my Terminal.app colors different from iTerm?

I have set the ANSI colors of both terminals to be the same (see 1st screenshot), but the colors for Terminal.app are really bright, and almost unreadable, and not like the colors I set at all. It's ...
5
votes
0answers
251 views

Stop iTerm2 from using disk (disk cannot be ejected)

How can stop iTerm2 from using the mounted disk I cd'd into? Sometimes, even when i cd out, it's still blocking the disk. I have to ⌘-Q the entire program which is very irritating. It's just idling ...
5
votes
1answer
665 views

Is there a way to force clockwise pane rotation in iTerm2 with the shortcut keys?

I've often found that when using iTerm2, I'll have like 3 or 4 panes open in one tab. And the shortcut keys for moving between them Cmd + ] and Cmd + [ are very useful, but unpredictable. The reason ...
5
votes
0answers
1k views

iTerm2: Split pane - coloured title bar instead of dimming

In iTerm2 it is possible, to split panes. Thus, I have parallel multiple terminals instead (or in addition) to tabs. This is very similar to the i3 Window Manager or Terminator Terminal Emulator. ...
4
votes
1answer
1k views

iTerm Double Click Text Selection

I recently installed iTerm on both my Mac Pro & MacBook Pro and the text selection behavior is different on both the machines. Consider the following line in terminal: /Users/user/basic/...
4
votes
1answer
13k views

How to save passwords for ssh in iterm2?

I am using iTerm2. Can someone let me know how can I save the password (may be via Password manager) so that I don't have to type it every time. Please don't suggest me about saving the SSH keys. I ...
4
votes
2answers
868 views

iTerm2 cursor doesn't return to line beginning

I'm not sure if I'm missing some sort of configuration here, but occasionally my cursor is unable to return to beginning of line where command starts. If I press FN+leftArrow, it goes few characters ...
4
votes
2answers
929 views

Removing a file from a protected folder in Mojave

Background I am trying to remove Sound Flower from my Mac. I found some relative files in 3 places. I removed 2 of them but the third one is in a folder that will not allow me to remove it. ...
4
votes
2answers
812 views

Customise iTerm sudo password prompt

Recently iTerm started showing an emoji key instead of the sexy key symbol at password prompts. It now shows this: But I don't like the ugly emoji there. I want to see (this is what it looks like ...