Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [iterm]

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

3
votes
1answer
39 views

Two red lines/bars in iTerm2 window and error message about session ending, what is going on here?

I've been experimenting with threading and running bits of python from iTerm in MacOS yesterday. Today I opened iTerm and two windows opened, one with thick red lines inside it. I received a Warning ...
4
votes
2answers
58 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. ...
0
votes
0answers
29 views

iTerm2 colors work locally but not over ssh

I have the settings below on a number of remote servers I ssh to so that I get a visual cue that I'm working remotely when I connect to those export PS1="\[\e[00:91m\]\h>\[\e[00m\] " When I ...
0
votes
1answer
63 views

How to reset iTerm2 Window/Tab Title when disconnecting from remote host? [duplicate]

I have my bash_profile on my Mac and the remote computers I connect to setup to automatically put the hostname in the window's (or tab's) title area. A bash shell on my local machine A remote host ...
1
vote
0answers
8 views

iTerm How to auto focus REPL?

I'm running on the latest version of iTerm and I'm using a vim plugin (https://github.com/noahfrederick/vim-laravel) that fires up a REPL with the command: :Console However, I have to focus the new ...
3
votes
1answer
3k 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 ...
0
votes
0answers
20 views

iterm2 : using `clear` to demarcate different portions of screen in terminal scrollback

I run programs that generate a lot of output. In Terminal.app, if I typed clear twice, it would enter a terminal's height of white space in the scroll back output. This makes it easier look through ...
1
vote
0answers
50 views

How to open multiple iTerm2 tab with admin privilege

So I have an executable program in my /usr/local/bin/ called myApp. I need to run multiple myApp processes in new iTerm2 tabs with sudo. The file structure is like this: --myFolder ----v1 ----v2 ---...
1
vote
1answer
32 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 ...
4
votes
0answers
111 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 ...
1
vote
0answers
121 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)...
3
votes
0answers
24 views

iTerm2 - Split vertically with same command history

Is it possible to have same history of commands when I split window vertically in iTerm2 with Command + D as in current window? For example history command shows different list of commands, looks ...
4
votes
1answer
479 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 iTerm window to have the same current working directory as the current one? By ...
3
votes
2answers
65 views

How can I find which Control-Command keys are mapped to particular programs?

I am using iTerm2 under High Sierra 10.13.6. iTerm2 lets me assign Control-Command key combos to particular actions. This mostly works fine, but at least two of these do nothing: Control-Command-B and ...
2
votes
0answers
38 views

How to avoid unselect file dialog when pressing minus sign in Midnight commander on macOS

I try to type open -a TextEdit in the command line, but always Unselect dialog shows. I have tried disabling Unselect in the ~/.config/mc/mc.keymap or map it to something else, but nothing helps: [...
1
vote
0answers
50 views

Iterm2 Window goes to back when switching desktops

When a non-fullscreen iterm window is opened and the desktop is switched, the iterm window goes to the back, behind any open windows in the screen. Is there a way to keep the iterm window on top when ...
1
vote
0answers
105 views

Terminal command and Broken Pipe

I use the iTerm terminal a lot and occasionally I'll run a script with an "exit" in it. When that statement executes I get 2 orange horizontal lines drawn the width of my iTerm window with the message ...
1
vote
1answer
45 views

macOS terminal: quick way to edit command options after bash/zsh autocomplete

The issue I use autocomplete from history a lot whether that's with up-arrow or typing the first few letters and completing the whole command including all arguments (options and others) with right-...
2
votes
1answer
69 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 ...
0
votes
1answer
225 views

Bash history not initially remembered with iterm2

I've got an annoying problem with iterm2 not remembering my history when I close out a terminal window. I'm not sure if it might be my .bash_profile config or what. Here is what is happening: 1) ...
1
vote
1answer
103 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/...
0
votes
0answers
31 views

Make iTerm2 read profile from file, from the CLI?

I want to make iTerm have these values set: - Load preferences from a custom folder or URL - Save changes to folder when iTerm quits And I want to set them from a CLI command (no GUI, no clicks). ...
0
votes
0answers
36 views

Terminal and iTerm appear to be partially opening in zsh

I recently installed Julia on my iMac running High Sierra. Julia seems to want to run in the Z-shell whereas I normally use bash. I haven't run Julia today but my Term2 windows are screwed up since ...
1
vote
1answer
62 views

Key binding in iTerm2

I am trying to bind a shortcut to perform cut command in iTerm2. Obviously, cut is bound to Cmd + x, but I would also like it to be bound to Ctrl + w. I did this easily for paste by going to iTerm2 → ...
0
votes
1answer
30 views

Window opens but immediately disappears. This happens with multiple apps

Recently, I've run into problems with Notes, Mail, Messages, and iTerm. All of these are in my dock along with several other apps. Normally if I click on one of these it opens and works fine. ...
1
vote
0answers
46 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
0answers
26 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?
0
votes
0answers
36 views

Shift+tab no longer works on terminal

I have a 2017 MacBook Pro Retina 13", running the latest version of macOS. I use Iterm + zhsrc as terminal configuration but a few weeks ago my shortcut Alt + Tab stopped working. If I'm executing ...
0
votes
1answer
144 views

Windows won't open from Mac Dock

I use iTerm a lot and keep the app in the dock. When I first start iTerm, it brings up a terminal window. If I minimize its window I expect to be able to click on iTerm in dock to bring the iTerm ...
2
votes
3answers
445 views

Generic exit function for iTerm2

I've recently begun to use iTerm2 instead of the macOS Terminal application and I'm really happy with it. I'm very used to use to exit command to close the instance that currently has focus. With ...
1
vote
0answers
110 views

Using i2cssh with highSierra

I have the latest i2cssh installed dmanna-a01:Downloads dmanna$ brew info i2cssh i2cssh: stable 1.3, HEAD https://github.com/djui/i2cssh /usr/local/Cellar/i2cssh/1.3 (5 files, 6.5KB) * Built from ...
0
votes
0answers
36 views

Opening iTerm2 with specific layout and commands

Is it possible to automate the process of starting iTerm2 in a way to: create 2 tabs with few horizontal splits, send a different command to each splitted tab which is basically ssh to remote server ...
1
vote
0answers
38 views

Rebalancing panes evenly in iTerm

Is there a way to rebalance panes in iTerm so that they are all arranged evenly? I'm trying to write an AppleScript that can ssh into X number of hosts in different panes. Writing the script is pretty ...
2
votes
1answer
31 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
3answers
2k 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 ...
0
votes
0answers
538 views

Pasting long string in terminal (iTerm) is very slow [duplicate]

I use iTerm (default settings) + oh-my-zsh on my macOS. To setup my mac i used dotfiles from mathiasbynens/dotfiles which i'm happy with but the only issue i can't figure out how to fix is, when i ...
1
vote
0answers
126 views

CTRL+c / CMD+Dot and rs not working in tmux on iTerm or Terminal

CTRL+c / CMD+Dot and the nodemon rs commands are not working in tmux on iTerm or Terminal. No errors but just not working. Restarting terminal/iTerm/tmux does not fix it. It never works. Update: it ...
0
votes
2answers
194 views

iTerm2: Notice about PHP7.1

Every time I open a new iTerm2 window is shown the following warning: Warning: Use php@7.1 instead of deprecated homebrew/php/php71 Anyone can help me out please? I've uninstalled PHP, and ...
0
votes
1answer
63 views

Force language change on focus into terminal

Is there any way of forcing input language set to default one on terminal/iterm focus? Basically what I want to achieve is setting current keyboard input language to English on switching back from ...
2
votes
0answers
93 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
1answer
812 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 ...
0
votes
0answers
174 views

AppleScript: How to tell if an app has a window in the current workspace?

I use an AppleScript script with Path Finder (and a similar one with Finder) to identify the current folder in PF, and then open an iTerm session with the CWD set to that folder. It checks to see if ...
0
votes
1answer
256 views

How in IRSSI can I switch channels? CTRL + number doesn't work

I just installed irssi using Brew in High Sierra. Using iTerm 2, I can't figure out how to change windows (channels). Pressing CTRL 2 for example doesn't take me to channel 2 like it would on an Linux ...
0
votes
0answers
86 views

iTerm is not using any config files when invoked for ssh

What I want to do: open an iTerm window/tab, and ssh to some remote system. On that remote system, I need the following exports to be "effective": export LANG="C" export LC_ALL="C" When I open that ...
0
votes
1answer
234 views

How to keep terminal window open in AppleScript after end tell?

I have this osascript with a command tell application "iTerm2" create window with default profile command "uwm" end tell Now the iTerm window closes at end tell but I want to keep iTerm window ...
1
vote
1answer
2k 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 gb -> git branch pmm -> python manage.py migrate hpl -> hg pull dk -> docker kill ...
1
vote
2answers
380 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 ...
2
votes
0answers
164 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 ...
0
votes
1answer
525 views

Mac Terminal: Delete a word at time

In iTerm2, if I type /one/two/three/four/five and now if I want to delete five and write another string, then how do I delete the word five ? If I use CTRL + W, it deletes the entire command all the ...
1
vote
1answer
66 views

How to change screensaver user name and/or iterm2 top bar name on mac [duplicate]

I am new to macbook pro. A few weeks ago I bought used macbook pro. I tried to change user name and it looks somewhat well. But when I open my iterm2, something that I don't want is wroten(MBP085ui). ...