Questions tagged [iterm]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
26 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
9 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
17 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 ...
1
vote
1answer
47 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 ...
-1
votes
0answers
31 views

Different colors for different file extensions while doing ls -G?

How can I colorise the output of ls -G to color based on extension of the file. Like if its a pdf file then some other color and if its a different file then some other color? I have tried LSCOLOR but ...
0
votes
1answer
24 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
32 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
63 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
27 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
73 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
34 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
54 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
23 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
19 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 ...
0
votes
1answer
52 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
41 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
31 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
25 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
10 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
36 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
87 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
19 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
45 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
32 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
55 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 ...
2
votes
0answers
57 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=...
3
votes
1answer
121 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....
0
votes
1answer
380 views

_complete:96: bad math expression: operand expected at end of string in iTerm and Terminal on Tab kypresses

Mac command line say "bad math expression: operand expected at end of string" Previously asks the question however the solution of restarting my computer has not worked.. I was hoping someone might ...
1
vote
1answer
102 views

macOS Terminal.app can't split with Command + D

I installed zsh. When I press Command + D in iTerm2, it could split normally. But when I return to using Terminal.app, I use bash or zsh, it can't split with Command + D, it changed like the ...
17
votes
6answers
2k views

How to find all the available tools in mac terminal?

I am trying to setup a bunch of development projects in my Mac. I have to run various tools like python, ruby, scala, groovy etc. To see if a tool is available I use options like ruby --version. ...
2
votes
1answer
80 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 ...
1
vote
1answer
181 views

iTerm2 : Prevent lines from vim from going into scroll back

I was wondering how I can prevent iTerm2 from saving the output from a vim sessions into the scroll back history? This isn't a feature when you are editing confidential files.
1
vote
0answers
131 views

iTerm2 still opens old shell after Bash upgrade

I tried upgrading my MacOS Bash from 3.2 to the latest version as in this article. It involves installing the latest Bash with Homebrew and then setting the default shell with chsh. However, chsh ...
1
vote
0answers
128 views

iTerm2 no longer putting SSH host in tab title

I recently updated iTerm2 to 3.3.0beta1. I used to see the name of the host I SSH'd to in the tab title. Now all it says is ssh. Any idea how get the previous behavior back?
10
votes
1answer
2k views

How to find out why iTerm2 suddenly wants to access my Calendar?

Out of the blue I am prompted for this permission grant: How can I find out what is triggering this request and why? The last command I ran was du -h -d 1 in /
1
vote
1answer
875 views

iterm3 reverse minimal theme compact style

When my term updated to its latest version (Build 3.3.0beta1), it removed the titlebar from the window. Apparently iTerm's theme is now: minimal. And the default profile window type is: compact But ...
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 ...
1
vote
0answers
221 views

Running a command with access to “System Events.app” granted

I am updating applications installed via Homebrew from command line. iTerm2 requires access to "System Events.app" to be correctly updated, which ends up in a process that is not fully automated and ...
3
votes
2answers
126 views

iTerm in a mode I'm not familiar with. How do I get it back to normal mode

When I am running on the command line using iTerm, it is in a different mode than I'm used to, shown in the images below. When I try to type a command it shows all the previous variations of that ...
0
votes
0answers
25 views

iTerm2 intermittently gets stuck on pasting old clipboard contents

As described in the title: sometimes iTerm2 does not realize that the clipboard has been updated. I have verified the problem were specific to iTerm2 by pasting the newer clipboard contents into ...
0
votes
1answer
203 views

curl not downloading pear.phar on Mac Mojave

i do try to curl -O https://pear.php.net/go-pear.phar but all i got is a log raising the time spent: % Total % Received % Xferd Average Speed Time Time Time Current ...
1
vote
0answers
31 views

How to get rid of a beep in iterm2 on `backward-word`

I'm using zsh in iterm2. I've set: bindkey "[D" backward-word for option+left to skip a word back. While it works, I also get a terminal beep every time I do it and I'm not sure where is it coming ...
1
vote
1answer
83 views

How can I get iTerm out of fullscreen mode?

I must have hit some keystrokes which got me stuck in full screen mode and there are no resize icons when you over mouse at top of screen even though the task bar shows up. How do I get out of full ...
0
votes
1answer
849 views

iTerm2 how to get autocomplete through tab key

In my terminal I can press tab key to autocomplete dir names etc but I can't do this in iTerm2. Is there any way to do that in iterm2? I'm using bash. I know cmd ; shows autocomplete but I'd like to ...
0
votes
1answer
37 views

How to render a specific character as transparent in terminal

I'm looking for a way of rendering a single character / escape sequence as transparent in iTerm2 or, if there is one, any other terminal emulator. With transparent I mean that it should show the ...
0
votes
0answers
24 views

Simple AppleScript exporting to Application does not work

I have created a simple script that takes some parameters as input, opens a new iTerm2 window and executes them. The script is fairly simple: on run argv set argList to {} repeat with arg ...
0
votes
1answer
159 views

Terminal broken.

I am having an issue and I have no clue what I should be searching to fix it. Not experienced enough. I have zsh and probably other things I installed many years ago while making the terminal more my ...
3
votes
1answer
174 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
814 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. ...