Questions tagged [iterm]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
17 views

Different colour for new tabs in iTerm2

Is there any way to change tab colour for new tabs in iTerm2 (automatically, random colour)?
0
votes
0answers
20 views

Can I set up a way to load iTerm with or without Full Disk Access on the fly?

I really appreciate Catalina's "Full Disk Access" Privacy right for keeping software I run in iTerm out of things like removable volumes, photos, etc. However, sometimes I do need to use iTerm in ...
1
vote
3answers
155 views

How to find out if iTerm is installed on a mac from within a shell script?

I am writing an automated script that will install iTerm2 if it's not already installed. What's a good way of checking if iTerm2 is already installed?
1
vote
1answer
33 views

How to make display PDF images with mouse hover in iTerm2 after " ls -l '?

On Catalina 10.15.2, Sometimes, in iTerm2 terminal, after a ls -l command, I can visualize some pdf files (a popup window appears suddenly) when my mouse is over the list of PDF filenames. But this ...
0
votes
1answer
34 views

How can I run a command which will not survive terminal close?

I want to send a notification in X seconds to future me, but I don't want to send the notification if I closed the terminal. So let's say I want to send myself a notification in 10 seconds: ...
2
votes
1answer
79 views

How to make auto-complete work for AWS on ZSH?

I installed awscli from brew. The amazon instructions refer to a shell script, aws_zsh_completer.sh that doesn't appear to be included. I do have an /usr/local/bin/aws_completer. How do I make the ...
1
vote
1answer
32 views

iTerm2 does not take the focus with the hotkey window

I have setup a new Mac with iTerm and the hotkey window shortcut (MacOS Catalina). It all works well, except that the hotkey window does not take the focus when it opens. I mean that I can type ...
0
votes
0answers
39 views

Using find in terminal after upgrade to Catalina

After upgrading to Catalina, I am unable to use find command in iterm2. Here is the error: --- ~ » sudo find / -iname mysqld.sock ...
1
vote
1answer
39 views

How can I make iTerm2 hotkey window fill out the whole screen?

I am using MacOS Catalina, and I use iTerm as my terminal. My problem is, that every time iTerm has been closed, and opened again, it only opens in half screen. I know I can drag it down to full ...
3
votes
1answer
59 views

Path into PS1 prompt is broken (\n) on different lines when it is too long

I am using iTerm2 on MacOS Catalina . Here is my PS1 into ~/.bashrc , using a function ps1 : function ps1 { # PROMPT SECTION BLUE='\[\033[0;34m\]' LIGHT_CYAN='\[\033[1;36m\]' ...
3
votes
1answer
70 views

What is the exact difference between 'tty' and a 'console'?

I know the general idea of console, tty as here explains https://unix.stackexchange.com/questions/4126/what-is-the-exact-difference-between-a-terminal-a-shell-a-tty-and-a-con But when run who (using ...
0
votes
0answers
62 views

iTerm2 remap keys to Ctrl-Shift-{Letter}

I'm trying to remap cmd-shift-u to ctrl-shift-u in iTerm2. Following ExistMe's answer here: Remapping keys in iterm2, I have tried these two things: Send Hex Code 0x60103 0x15 (found using the Key ...
0
votes
1answer
56 views

applescript: commands to maximize (green button) an iTerm window

Assuming I am opening an iTerm window with the following AppleScript: tell application "iTerm" set win1 to (create window with default profile) repeat until exists win1 ...
1
vote
1answer
29 views

applescript: Appropriately escape input in script invocation

I have the following snippet in an applescript: tell current session of current tab of current window write text "watch -n1 'kubectl get pods | grep -i" & input' ...
1
vote
1answer
20 views

AppleScript: Failure to create new iTerm2

I have the following AppleScript code in a Run AppleScript action in Automator: on run {input, parameters} set appName to "iTerm" if application appName is not running then tell ...
0
votes
0answers
12 views

Associate automation applescript with hotkey or shortcut or launcher icon [duplicate]

I came across a very handy approach based on applescript to automate some repetitive tasks on iterm. Here is the example script: #!/usr/bin/osascript tell application "iTerm2" tell current ...
0
votes
0answers
63 views

Running but not sourcing `~/.bash_profile` on file-write

I have an odd but no-longer-reproducible issue with iTerm2 and Bash. My default iTerm2 profile uses /usr/local/bin/bash (Bash 5 installed with Brew) with no arguments. I was trying to determine when ...
0
votes
0answers
15 views

iTerm2 - How to move current word to the left?

For instance, in iTerm2, I enter mkdir ./a/b -p and then realize that the correct order should be mkdir -p ./a/b while my cursor is at the last character of the the whole string(at p). So how can I ...
1
vote
1answer
39 views

Why does the same colour appear different in different apps?

I've configured VSCode and iTerm2 to use the Solarized Dark colour scheme. As far as I can tell, they are both using the same RGB colour specification for the background colour, but to my eye they ...
0
votes
1answer
39 views

Superimposed “W” on terminal screen

I don't know when it appeared, but I have a weird superimposed red "W" in iTerm2. What is it, and how do I get rid of it? I'm running iTerm2 v 3.6.6 and macOS 10.15.
1
vote
0answers
89 views

iterm2 issue : create new tab with same path of previous current tab BUT 2 tabs are clones and not indepedent

You can see the bounty launched on StackOverflow (Bounty started about ìTerm2 problem) about this issue described below. I have switched from default terminal on MacOSs Mojave to iterm2. I have an ...
2
votes
1answer
69 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
1answer
90 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 ...
1
vote
1answer
30 views

Command line issues

I'm trying to execute two commands in a single line: pkill "something" && runsomething when executing each command separately, both work. When executed together with "&&", only the ...
1
vote
0answers
12 views

How to display the marked position at the very top when jumping to previous mark in iTerm?

When you jump to a previous mark in iTerm, the marked position will be displayed in (vertically) the middle of the terminal window. But instead of displaying it in the middle, I want it to be ...
0
votes
1answer
60 views

Enable unlimited scrollback with iTerm2

I tried to check Unlimited scrollback option in the iTerm2 settings, however, it doesn't seems to be applied for longer outputs (say couple of thousands lines). The output gets truncated so I can ...
2
votes
1answer
1k views

How to make Powerline fonts work with iTerm2

I have a problem with using Powerline fonts in the iTerm2. I followed the tutorial for installation and I have chosen Hack font in the profile settings (Non-ASCII is set just to make sure). My .zshrc ...
0
votes
1answer
88 views

Iterm2 BrokenPipe Failed to exec /usr/bin:/bin:/usr/sbin:/sbin: No such file or directory PATH=/usr/bin:/bin:/usr/sbin:/sbin

Backstory: I've been given a lender computer from the school I'm attending and I was attempting to npm install global packages for my react-native project. I was able to install the packages, but my ...
1
vote
0answers
55 views

How to disable iterm2 rectangular selection?

In MacOS iterm2 Option + Cmd: Make a rectangular selection. how to disable this shortcut? many thanks!
3
votes
2answers
87 views

Why is the width of `~` different than `➜` on iTerm2 when using zsh with spaceship-prompt?

Using iTerm2. Installed zsh, spaceship-prompt and FiraCode. Why is the width of ~ different than ➜?
0
votes
1answer
82 views

How to select a tab in iTerm2 via AppleScript

I am quite a startet with iTerm2 and AppleScript, and can not find a way to let one of my 3 opened tabs get selected via an AppleScript. I have no problem to create a new tab and to select it, but I ...
1
vote
1answer
140 views

Show window dimensions in titlebar in iTerm2

In the default Terminal app the current width and height of the window are always displayed in the title bar, whereas in iTerm2 they're only displayed for a few moments when resizing. How can I ...
0
votes
1answer
50 views

Give assistive access to a single applescript

I have this script: #!/usr/bin/env osascript activate application "SystemUIServer" tell application "System Events" tell process "SystemUIServer" to keystroke "q" using {command down, control down} ...
3
votes
1answer
114 views

Passing alt/opt key sequence over ssh to remote host with iTerm

Just learning the ropes of my new MacBook Pro. I have a linux workstation at the office that I use to host a number of tmux sessions, which represent whatever Im working on at a given time. If out ...
0
votes
1answer
26 views

What do these marks indicate exactly on these tray icons when I run Python from a terminal?

I ran an Anaconda Python installation from iTerm using python -i myscript.py. It made a plot using Matplotlib. After I closed the plot, the two icons remain. Each has a dot under it, and a little ...
1
vote
1answer
39 views

Toggling between chunk of input in iterm2 with “Alt + arrow left/right” writes “[D” instead jumping from chunk to chunk

I just started to use iterm2 on MacOS and find that it has really nice features especially for splitting terminal screen. However, when trying to toggle between chunk of input in with "Alt + arrow ...
1
vote
1answer
87 views

Problem with snippets in Zsh

I recently changed my shell from bash to zsh. I have lots of snippets (Alfred, Dash...) for terminal use that ends with a line break. With bash that snippets works fine, I meant, paste the command and ...
0
votes
1answer
137 views

How can I limit iTerm2 text selection to a single tmux pane?

I have a late 2013 MacBook Pro running iTerm2. I don't have tmux installed on it, but I use tmux on the remote Linux host I frequently connect to via ssh. When tmux is displaying a vertical split and ...
0
votes
1answer
44 views

Report *only* mouse wheel events in iTerm2

In Preferences -> Profiles -> Terminal, my iTerm2 (3.2.7beta4) has the following options: I would like iTerm2 to send mouse wheel events to the application (so that I can e.g. scroll in tmux), but ...
0
votes
0answers
52 views

how can my iterm2 not to paste into one line when I copy multiple lines from other place?

I copy multiple lines from sublime editor like following: aaa bbb ccc however, when I paste then into item2, it become: but I want it keep it as mutiple lines in iterm2, anyone knows how to fix it?
1
vote
0answers
17 views

Is there a way to update an existing window arrangement in iTerm2?

I have saved window arrangements which work great. However I sometime want to update an existing one and I cant find a way to do it without having to save a new one and delete the previous?
0
votes
0answers
16 views

How to use other key combination to replace ⌘W? [duplicate]

I am using a small mechanical keyboard on which if I press a special function key and key 'W', it means 'up' I use iTerm2 as my console app. From time to time I use 'up' to recall past commands. ...
0
votes
0answers
88 views

tmux + iTerm2 - no permission to edit crontab

I am running macOS 10.14.5, iTerm2 build 3.2.8, tmux 2.9a (tmux -V). I've granted both iTerm2.app and Terminal.app (file permission: .r-xr-xr-x) Full Disk Access (FDP) in Sys prefs > Security and ...
0
votes
1answer
173 views

Can set iTerm2 tab colors from the command line?

I'd like to automatically set a terminal tab's color when certain things happen, like when I run teamocil, ssh or other programs. I know how to watch the .bash_history file. But I don't know how ...
0
votes
0answers
21 views

Open last link on iterm2 console

When using git, I often follow git push origin with CMD-Clicking the link displayed to create a pull request. Is there a way to do this with a keyboard shortcut instead?
0
votes
0answers
102 views

Does there exist a means to use Ranger in iTerm2 and Preview Images with X11 forwarding enabled on an SSH session?

So I am using the ranger terminal application, which is a vi style file browser. I've followed this tutorial to achieve image preview compatibility with the iTerm application. This works very well for ...
0
votes
0answers
87 views

Bash prompt customization not working

I have installed Git Aware Prompt. I have followed the instructions in the project readme file and customised my prompt in ~./bash_profile by adding the following lines: export GITAWAREPROMPT=~/.bash/...
1
vote
1answer
60 views

iTerm2: Non standard characters are differently sized than other characters

Recently I changed iTerm2's default setting so that the default font size is larger when I open it up. However this increased font size only seems to apply to the standard characters. The non standard ...
4
votes
0answers
107 views

Separate zsh histories after restart (iTerm2)

I am running iTerm2 (v 3.2.9) and zsh (v 5.7.1). I normally have 3-4 iTerm tabs opened at the same time and each tab has its own history thanks to the following settings in my .zshrc file SAVEHIST=...
5
votes
2answers
506 views

How do I switch tabs when using iTerm2 with Z shell

How do I switch tabs when using Z shell on iTerm2? I have already tried all the possible key combinations. Here is an image of my current setup: OS: macOS Mojave 10.14.4 (18E226) iTerm2: Build 3.3....