Questions tagged [iterm]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
13 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 ...
3
votes
1answer
46 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\]' ...
22
votes
3answers
22k views

For iTerm2, how do I make the working directory appear in the window title?

I recently switched to iTerm2 from the default Terminal app and have a usability issue. On Terminal, the working directory you are in shows up on the title bar along with the process and pixel size....
1
vote
1answer
25 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
55 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
30 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
40 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
28 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
18 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 ...
1
vote
2answers
2k views

Sending ctrl+function key on iTerm2

Byobu has some keybindings that require a modifier key and a function key, like Shift+f2 or Ctrl+f7. Unfortunately macOS picks these up instead and does god knows what with them. How do I send these ...
2
votes
1answer
64 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 ...
0
votes
0answers
58 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
0answers
64 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 ...
1
vote
1answer
33 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 ...
17
votes
4answers
21k views

open new tab in iTerm and execute command there

I have found way to open new tab in iTerm: newtabi() { osascript -e 'tell application "iTerm" to activate' -e 'tell application "System Events" to tell process "iTerm" to keystroke "t" using ...
0
votes
1answer
38 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.
6
votes
2answers
412 views

Disable Search / Dictionary Popup Window in iTerm2

The newer versions of iTerm2 have a "feature" in which a Search dialog is displayed instead of doing a Start selection action. My intention had been to select the 14 and the following paragraph .. ...
43
votes
5answers
22k views

How to jump to a location using mouse on iTerm/terminal?

I work on a terminal most of the time. Is there an application / plugin over iTerm or any other terminal like application using which I can control the cursor location of my terminal using a mouse ?
2
votes
1answer
145 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
1answer
87 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 ...
1
vote
1answer
598 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
45 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 ...
16
votes
6answers
6k 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 ...
0
votes
1answer
60 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 ...
3
votes
2answers
80 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 ➜?
1
vote
0answers
47 views

How to disable iterm2 rectangular selection?

In MacOS iterm2 Option + Cmd: Make a rectangular selection. how to disable this shortcut? many thanks!
0
votes
1answer
66 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
111 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
45 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} ...
0
votes
1answer
42 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 ...
3
votes
1answer
102 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 ...
175
votes
8answers
76k views

iTerm - going one word backwards and forwards

Would it be possible to configure iTerm 2 to go backwards and forwards one word through the curent text in the command line using a keyboard shortcut?
5
votes
1answer
616 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 ...
23
votes
4answers
42k views

iTerm colors for Prompt, Command, and Output

Right now my iTerm2 looks like this... Everything is the same color and is hard to read. Can I make any of the Prompt, Command, and Output different colors like this?
1
vote
1answer
28 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 ...
2
votes
1answer
441 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 ...
1
vote
1answer
83 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 ...
226
votes
7answers
63k 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.
44
votes
2answers
19k views

Set iTerm2 as the ssh:// URL handler

Currently, Terminal is set to handle SSH urls. For example, if I do: $ open ssh://machine.example.com Then it will spawn a new SSH session in terminal. I'd like these to be opened in iTerm2 instead. ...
0
votes
1answer
100 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 ...
19
votes
3answers
11k views

In iTerm2 Command Click on URLS does not work when inside a tmux session

When not inside a tmux session, Command-Click on URLs works flawlessly. How can I make links clickable in iTerm2 when inside a tmux session? When hitting Command the mouse pointer changes to the ...
4
votes
2answers
894 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 ...
0
votes
0answers
46 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?
13
votes
1answer
3k views

How do I view inline images in w3m?

I am using a Mac (El Capitan), and trying to use w3m. But I don't see images when browsing pages. My question is: I want to view inline images in w3m, but don't find a way to do so. I have been ...
0
votes
0answers
69 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 ...