Questions tagged [iterm]

iTerm is an enhanced terminal emulator for OS X and macOS

Filter by
Sorted by
Tagged with
-1 votes
1 answer
10 views

akamai pipeline save cannot write to dist

I am using akamai CLI with MacOS and iTerm. I am trying to execute akamai pipeline save -p myProject test. It returns a Unexpected error occurred: Error: ENOENT: no such file or directory, open... ...
Divide by Zero's user avatar
0 votes
0 answers
17 views

How to use osascript to open Iterm2 and run script?

Currently, I have an sh file which I use to run a script as such: osascript -e "tell application \"Terminal\" to do script \"cd $PWD && npm run build:watch\"" ...
Owenn's user avatar
  • 680
0 votes
1 answer
45 views

How to use mac typing shortcuts in iterm2?

I want to use ⌘ + ← to go to the first character of line and ⌘ + → and similar shortcuts in iTerm2 but couldn't find a straight forward way to make that configuration. I want to know if there is a one ...
Karan Sharma's user avatar
0 votes
1 answer
90 views

MacOS Getting the file path inside a shell script when opening a file as an application

I'd like to be able to have an option to open a file inside NeoVim in the "Open With" list. That is to open a new terminal window (ITerm in my case), and execute a command that launches ...
Yaroslav Biloshytskyi's user avatar
1 vote
0 answers
127 views

Iterm2: how to set the current zoom as the default for new windows and tabs?

Iterm2 has a comfortable feature that allows us to zoom in and out using the pad or mouse scroll. Once I zoom it to a font size that fits my needs, I want to define the current zoom size as the ...
YFl's user avatar
  • 865
0 votes
0 answers
38 views

iTerm can't delete directories

I just started working with iTerm an I've been playing around, creating folders and files and such. Now I want to get rid of those test folders. I used rmdir, rm -r and all of those commands and I ...
supernova-97's user avatar
0 votes
0 answers
20 views

Triple dot iTerm locks command window - why does this occur and how to unlock the console?

I accidentally entered ... into my iTerm console, which led to a locked console session - what is the meaning behind this behaviour? Couldn't unlock the command line until i closed the session and now ...
user avatar
0 votes
0 answers
53 views

How to configure iterm2 terminal output to be unlimited when running scripts?

I am using NATS and sending messages from one terminal to another. I am observing that if I send the output to a file, I can see everything, but when I want to see in the terminal itself - nothing. ...
SteveS's user avatar
  • 3,799
0 votes
1 answer
166 views

Iterm2 x Powerlevel10K new line shows only >

i have this weird issue with my new iterm and powerlevel10k after configuring it, it shows new "entered" lines as ">" instead of the UI. as seen here: why doesn't it show the &...
Yaniv Akiva's user avatar
0 votes
1 answer
377 views

(eval):66: command not found: dirname

After i set anaconda there is an error Iterm error : (eval):66: command not found: dirname ################################## which python -> /opt/anaconda3/bin/python which dirname -> /usr/bin/...
Climbing_holic's user avatar
0 votes
2 answers
303 views

Zshrc launching python prompt - multiple pythons

I wonder if this is all a PATH issue. I have MacBook Pro 12.6, with homebrew. No pyenv or virtualenv. (perhaps I should..) I am using nvim. When I start iterm it launches python to the python command ...
capnahab's user avatar
  • 353
0 votes
0 answers
42 views

How to make `reverse-i-search` case insensitive in bash/iTerm?

How to make reverse-i-search (activated with ctrl+r) case insensitive?
user7858768's user avatar
1 vote
1 answer
402 views

vim change cursor in different modes with tmux and iTerm2 - works on ssh but not on local machine?

I am trying to make the cursor change depending on the mode in vim while in tmux (using iTerm2 as my terminal emulator). The below setup in my .vimrc works on my local machine without being in tmux, ...
yjflute's user avatar
  • 11
1 vote
0 answers
116 views

iTerm2: how to enable auto-scroll down after I manually scroll up?

How can I set up iTerm2 so that it auto-scrolls down even after I scroll up manually? See GIF below. It starts scrolling down normally, but stops after I manually scroll up, even that output is still ...
André Willik Valenti's user avatar
1 vote
0 answers
263 views

Remove activity and new-output indicators in iTerm and zsh

I'm occasionally updating my iTerm prompt with zsh to update current time: # in ~/.zshrc PROMPT='[%D{%H:%M}]'$PROMPT TMOUT=10 TRAPALRM() { zle reset-prompt } Since I have indicator-related ...
errata's user avatar
  • 5,715
1 vote
1 answer
393 views

sudo asks for a password instead of getting it from stdin

I have a script running in an open terminal window: while sleep 345600; \ do pass="$(security find-generic-password -w -s 'service' -a 'account')"; \ sudo --stdin <<< "${...
jack's user avatar
  • 71
0 votes
0 answers
240 views

iterm annoying history window

I have recently changed my MAC and was setting my work environment from scratch. I have noticed that now I have a feature that I've never used before. When I press up arrow up a couple of times iterm ...
Patryk Petryszen's user avatar
0 votes
0 answers
414 views

When I copy and paste multiple chunks of Python code into iTerm, it often is not ready correctly unless I do it several times, how can I fix it?

When I copy and paste Python code for evaluation into iTerm, or the Mac terminal, often times it will come up with an error if I am pasting in many functions. I have to repeat the process often many ...
user145416's user avatar
0 votes
2 answers
63 views

How to stop retyping "ssh user@domain.com" over and over

My workflow always consists of opening a new terminal window, typing ssh user@domain.com (or scp) followed by cd remote/directory/of/project The domain is long and hard to type, as well as it being a ...
Stuart Rucker's user avatar
55 votes
5 answers
13k views

when launching terminal macos get error Class ATCRTRestoreInfoFTABSubfile is implemented in both

When first launch the termainal always get this error. objc[9318]: Class AppleTypeCRetimerRestoreInfoHelper is implemented in both /usr/lib/libauthinstall.dylib (0x207c11eb0) and /Library/Apple/System/...
Victor Orlyk's user avatar
  • 1,484
0 votes
1 answer
849 views

Strange tmux status-bar rendering issues iterm2

I'm running into this strange issue with my tmux in iterm where it appears to be rendering on the wrong line, but this causes strange rendering issues to happen Here is the basic behavior: You'll ...
Iinferno1's user avatar
1 vote
0 answers
999 views

How to upgrade system node in nodenv?

I am using nodenv to manage my application's node versions. Currently my global node is set to system. $ nodenv global system $ node -v v16.10.0 I've tried to set up global node to v17.5.0 but ...
caruso_g's user avatar
  • 404
-1 votes
1 answer
765 views

How to highlight IPv4 address in iTerm

A friend recently destroyed a server because he mistyped an IP address, and we thought: how could we make IP addresses clearer to the eye in our day to day Terminal use. We mostly work from MacOS and ...
leonardo's user avatar
  • 1,686
1 vote
2 answers
1k views

Is it possible to create a macro / script in iTerm2 that insert text automatically selected from a list?

I use iTerm2 as my default terminal app in OSX. A would like to ask if is possible to insert text automatically with a hotkey (or selecting it from a menu), with iTerm, like the old macros of some ...
drizzt.dourden's user avatar
0 votes
1 answer
381 views

VSCode terminal send same sequence like in iterm

I am using VSCode integrated terminal together with zsh and zsh-autosuggestions. Everything is working as expected except for autosuggest-execute command. I am looking for a way to send '^[auto' ...
MartinT's user avatar
  • 590
2 votes
2 answers
729 views

How to disable history popup in iTerm2?

I am using iTerm 2 for Mac How can I disable this "history pop up window"?
Jan's user avatar
  • 13.2k
5 votes
1 answer
3k views

How to make iTerm autocomplete a partial command when pressing the 'up' arrow key? [closed]

I currently have iTerm version 3.4.12. In my old work computer I had a different version that would autocomplete a partial command based on the previous commands I had typed when pressing the up key, ...
IvanHid's user avatar
  • 669
3 votes
1 answer
531 views

How to restore iTerm2 tabs in the same directory

I would like to restore iTerm2 tabs in their own directories as they were when iTerm2 was closed. For instance, I have 10 tabs, in each tab I have different directories. Now, when I close iTerm2 and ...
Valentin's user avatar
  • 1,492
6 votes
0 answers
659 views

iTerm2 Python API: how to run a command AND capture result

It's quite easy to send a command using the API: #!/usr/bin/env python3 import tkinter as tk import iterm2 # To install, update, or remove packages from PyPI, use Scripts > Manage > Manage ...
Jarek's user avatar
  • 782
0 votes
0 answers
686 views

Why does my terminal give me an error when trying to cd to another directory

I am using iTerm and oh-my-zsh. When I try and cd into a directory on the command line I get this message Can't find a suitable configuration file in this directory or any parent: not found. Here is ...
Michael Carrier's user avatar
0 votes
1 answer
192 views

Do I need to update my path to run ts-node on iterm (zsh)?

I tried installing ts-node using npm using the following commands, npm install -g typescript npm install -g ts-node reference: https://www.npmjs.com/package/ts-node#installation However, when I run ...
Brian Yoon's user avatar
1 vote
1 answer
530 views

How to switch tabs in iTerm2 on a Mac using SHIFT-arrow keys, _not_ CTRL-arrow keys

Pretty much what the title says... My work flow in iTerm2 (just upgraded to 3.4.10 to see if that fixed the problem; no, it did not) let me hit Shift-Left Arrow to move to the previous tab and Shift-...
faberfedor's user avatar
0 votes
1 answer
243 views

iTerm2 - how to run command in a pane code inside of a loop

I'm trying to split panes in iTerm and run commands in each pane. If I run one command after another manually it's fine. However, when I run those same commands inside of a loop I have a problem. Can ...
Passaro's user avatar
  • 93
0 votes
1 answer
273 views

How to use ffmpeg merge all the videos in the catalog in an orderly manner?

I have a lot of regular video clips 1.mp4 2.mp4 ... 11.mp4 I use command below to combine all the clips: ffmpeg -f concat -safe 0 -i <(for f in ./*.mp4; do echo "file '$PWD/$f'"; done) -...
Xiang Chen's user avatar
1 vote
0 answers
73 views

iterm2 problems with a tringle symbol in the .zshrc pront

I have installed too many times and configure the .p10k.zsh file too many times as well !!!, but always appear a triangle at begins of the terminal, how to avoid that triangle in blue color ?? Thanks
abraham's user avatar
  • 643
2 votes
2 answers
845 views

How to open iTerm from the terminal in Visual Studio Code?

I tried the command iterm . but it says zsh: command not found: iterm. How can I create a shortcut for iterm so I can open it from other terminal tools? Pretty much I want open -a iTerm . to be ...
Aero Wang's user avatar
  • 8,431
13 votes
3 answers
6k views

In iterm how do I show the start time of a command

I would like to see when I typed a certain command. How do I display this in my terminal prompt?
rose specs's user avatar
0 votes
0 answers
219 views

How do I turn screen logging off?? I did `screen -L` once and now a file called screenlog.0 keeps getting generated

I entered screen -L in iTerm2, and now whenever I open a new terminal window, a new file screenlog.0 gets created and shows up in git, which I don't want (and I don't want to delete it every single ...
Gina's user avatar
  • 1
-1 votes
1 answer
156 views

Change jest test output (iTerm being weird)

I am using latest iTerm on catalina with the "Semantic History" feature which allows you to Cmd+Click urls and filename/paths in the terminal. I set iTerm to open vscode: This seems to work ...
Devin Rhode's user avatar
  • 23.1k
0 votes
1 answer
442 views

vim on iterm cannot open as full screen

I wonder about this bottom and left gap, and also wanna remove it It occurs only when i open "vim", not Iterm itself Is there any solution?
Wonho  Kim's user avatar
0 votes
1 answer
588 views

iTerm2 click to open selected path

➜ ~ brew remove proxifier ==> Uninstalling Cask proxifier Error: It seems there is already an App at '/usr/local/Caskroom/proxifier/2.22/Proxifier.app'. Here's a common log, which contains a path ...
Vincent Sit's user avatar
  • 2,224
5 votes
0 answers
2k views

How to use Neovim as External editor for Godot (Godot executable permissions)

I am trying to configure Godot to use launch Neovim in iTerm2 when I double click on a file containing code in the editor, however, a terminal window pops up instead with the following error: /Users/...
Rory O'Connor's user avatar
0 votes
1 answer
406 views

aws cli's response is not json format

When I authenticate in cognito using aws cognito-idp admin-initiate-auth with iterm, the response format is not json(like below). And the key of value aren't shown, so I can't find which is access ...
yn1043's user avatar
  • 538
0 votes
1 answer
958 views

Paste bracketing causes slow pastes

When I paste in large blocks of text, or even just long commands or urls, pasting is done character by character and takes a long time. I can make it speed up by pressing right arrow but that ...
Elias Khan's user avatar
1 vote
1 answer
596 views

ITerm: Is there a way to reprint output of previous command without running it?

Of course, we can feed the output of any command to a file. Using command > /tmp/filename Or even better use command | tee /tmp/filename to have the standard output be fed onto the terminal as ...
user7858768's user avatar
1 vote
1 answer
2k views

Open 2 screens split with zsh & iterm2 via script

I would like to have a script which would be able to open 1 iterm tab which contains 2 split screens inside via script. Is it possible or should I install an additional lib for that?
USer22999299's user avatar
  • 5,314
1 vote
1 answer
10k views

How to use private key with ssh login on Mac terminal? My attempts result in `Load key "/path/to/privatekey": invalid format`

I usually use putty on windows for ssh login, which has an option to add a private key for logging in. I switched to Mac and I am using iTerm2 to attempt to log into the server. I tried the command ...
SantoshGupta7's user avatar
0 votes
1 answer
178 views

On a remote ssh session in Ubuntu (local is a Mac OS computer), why do colors come on when I type "bash"? [closed]

On my Mac, after sshing into a ubuntu 18.04 computer, using iTerm, after typing in bash I see the ls colors turn on. Why is this?
user321627's user avatar
  • 2,360
2 votes
1 answer
456 views

iTerm now showing cursor when pressing Shift + arrow key

As you can see in this picture, iTerm is adding a kind of overlay cursor (plus this paper icon) above the terminal windows when I press Shift + any arrow key. It seems to be a text selection tool or ...
Philipp L.'s user avatar
0 votes
0 answers
145 views

How do I customise iTerm terminal to show me (master)?

I download something from Git, it was provided by Linux Academy, I'm just curious, once I got in that folder, in my terminal pops up a word in green (master) and disappears when I get back, I saw that ...
KhanSam's user avatar

1
2 3 4 5
7