Questions tagged [iterm2]

iTerm2 is an open source Terminal replacement for OS X

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

Cannot seem to get Neofetch to auto display when opening iTerm2

This question probably has a very obvious answer, but I have yet to figure out what that answer is. I have Neofetch installed using Brew under macOS Big Sur 11.3. I can run neofetch in iTerm2 and ...
0
votes
0answers
6 views

Display iTerm on screen with cursor [or Active Screen]

I always have iTerm running in the background, and use a hotkey to show/hide it when needed, which works great when using only one screen. Now, with two screens, I notice that with the option to have ...
0
votes
0answers
93 views

What has caused the CTRL + x + e shortcut to stop working in the shell?

The CTRL+x+e keyboard shortcut allows you to open your favorite editor, as defined in the $EDITOR shell environment variable. This has stopped working for me recently, but I am not sure what changed. ...
0
votes
0answers
9 views

How to split the zsh history per tab name in iTerm2

I would like to split the zsh history in iTerm2 per tab name. I currently use the session id but the session id can change and I would therefore like to use the constant tab names. Currently I use the ...
0
votes
0answers
9 views

How to map Command key to Control key when using iTerm

I already mapped "Caps Lock" key to "Command" key using System Prefrences of macOS, as I use "Command" key frequently when using most application. When using iTerm, I use ...
0
votes
1answer
67 views

With PowerShell set iTerm2 tab title

I'm using PowerShell as my shell with iTerm2 on macOS. I know it's possible on bash and zsh but running the recommended solution doesn't work in powershell, because the ANSI escape doesn't work: PS ~&...
0
votes
0answers
32 views

Cannot open new tabs or windows in iTerm2 after upgrading to Bug Sur

After upgrading to Big Sur (11.2), I can no longer open new tabs (Command+T) or windows (Command+N). iTerm2 flickers, but nothing happens. I also cannot split. I can still duplicate an existing tab ...
1
vote
1answer
42 views

Add Additional Content to Paste

(I'm using iTerm2 on MacOS, also have a Debian Linux machine) Does anyone know of a way to paste content that would include some boilerplate text around whatever the actual contents of clipboard is? ...
0
votes
0answers
21 views

Why would iTerm2 need to record the computer's screen?

I finally installed iTerm2 on my Mac to improve my efficiency working in the terminal. Right out of the box it's been great. I got a popup saying "iTerm would like to record this computer's ...
1
vote
2answers
698 views

“No such file or directory: ~/.oh-my-zsh/oh-my-zsh.sh” even though file exists

I was trying to transfer my terminal setup (iTerm2, zsh, oh-my-zsh, omz themes) from an old MacBook to a new one. .zshrc real file is in Dropbox shared between the two laptops, and in each laptop ...
0
votes
1answer
310 views

iTerm2 + oh-my-bash: iTerm2 shell-integration not working

I cannot get iTerm2's shell integration work with oh-my-bash. I already tried the suggestions in the existing posts but without luck. My configuration looks as follow: iTerm2 profile General -> ...
1
vote
1answer
81 views

Garbage characters are printed on mouse scrolling on iTerm2

Sometimes whenever I use my mouse to scroll on iTerm2 the scrolling does not work, instead printing a lot of garbage characters on the screen. This happens very inconsistently. Sometimes it happens ...
0
votes
0answers
18 views

iTerm2 Changing Only Active Tab Color

I am wondering if it is possible to change only the color of the active tab in iTerm2. I want to know which tab is active by the color of the tab. For example, the color of the active tab is red and ...
2
votes
0answers
935 views

Why is iTerm2 is super slow on macOS BigSur?

I am super bummed out: My iTerm2 commands that were previously fast before Big Sur now crawl. Worse, when opening a new terminal it can take up to 50 seconds for the shell prompt to return. What is ...
0
votes
0answers
10 views

iTerm Color Profile Documentation

The screenshots of iTerm color profiles have column names (40m, 41m, 42m... 47m) and row names (m, 1m, 30m, 1;30m, 31m, 1;31m... 37m, 1:37m). Can anyone point me toward documentation that explains ...
0
votes
0answers
21 views

How do I make iTerm2 only save 1 instance of a command in history?

I saw as a "tip of the day" in iTerm2, that you could make it only save one "copy" of the same command in the scrollback history. Since I do a lot of repeat ssh and sshfs commands, ...
0
votes
1answer
38 views

'Make text smaller' actually reduce the size of the window with terminal or iterm2 in mac, instead of the font size

If I am in full screen mode the shortcut cmd+ and cmd- increase or reduce the size of the text, as it should. Otherwise the shortcuts just reduce or increase the size of entire window, they don't ...
1
vote
1answer
22 views

iTerm terminal emulation is weird

Recently, I switched to iTerm because a lot of people recommends it, but it behaves quite weirdly. It does not automatically enter "alternate screen mode" if less/man/similar commands are ...
0
votes
0answers
44 views

How do I set iterm2 to replace the default terminal? (maxOS)

When I type in terminal in Spotlight it opens the default terminal instead of iterm2 which I prefer, any ideas how to make it the default terminal? Thanks in advance.
0
votes
0answers
4 views

iTerms2 show output in previous closed sessions

I cannot seem to find ways to show 'output' iTerms churned out. I know I can use '$history' to show the 'input' - words I typed in. How to scrollback/show the output of previous closed sessions of ...
0
votes
0answers
206 views

How to uninstall iTerm form the mac?

How can I uninstall iTerm from my Mac? I searched a lot on the Internet but I didn't find any helpful Informations. I want to mention too that I installed iTerm without using Homebrew.
0
votes
0answers
100 views

How to automatically change iTerms tab title to that of currently open file?

My goal is that when I open a file in the Terminal (regardless of editor, FWIW I use Micro) to automatically show the filename in the tab title and when I exit/quit the editor revert the tab title ...
0
votes
1answer
485 views

“Could not resolve host: github.com” error when trying to run “git pull” in iTerm2

I ran into this error when trying to pull the latest contents of a repository in iTerm2. Removing the origin and re-adding it did not resolve the issue. However, restarting iTerm2 completely resolved ...
0
votes
1answer
618 views

How to change default shell in iTerm2 via command line?

How to change iTerm2 shell via CLI? I want to change the user's iTerm2 preferences. I've taken a snapshot of iTerm2's preferences: defaults read com.googlecode.iTerm2 > iTerm2.original.defaults ...
0
votes
0answers
7 views

Changing the iterm2 keyboard shortcut for navigating marks in shell integration

iterm2's shell integration has some crazy fun features, quite possibly the most useful of which is simply navigating between marks. By default that is done via: You can navigate marks with Cmd-Shift-...
0
votes
1answer
39 views

How to bind Command-b to move back by a word in iTerm/ZSH?

I just installed iTerm and have ZSH because I have Catalina. I used to have Bash and Catalina instead, and an iTerm installation on a different laptop that I have gradually configured over the years. ...
1
vote
1answer
64 views

How to configure zsh to clear history on exit?

This used to be the default behavior on iTerm2 before I upgraded to macOS Calalina.
1
vote
1answer
26 views

Is there any way to enable a backup of the current directory to take place when an rm command is issued?

I know how dangerous rm can be, and I'm unfortunately not a very responsible person at all. I know that I need to learn, but while I'm in the process, I need some help. Is there any way to create a ...
1
vote
1answer
28 views

iterm2 different directory for sourcing zshrc

I started playing around with shell scripting and set up zsh via iTerm2 on my MacBook. I set a zsh directory in .config so to organise my .zshrc and .zshenv config files, but when I launch iTerm2 it ...
0
votes
0answers
82 views

zsh broken: “Session ended”

I hope you could help me with the following problem: TLDR: exit accidentally got entered in the wring iTerm window, now zsh doesn't work. Whenever I start it, "Session ended" appears. How ...
0
votes
0answers
28 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 ...
0
votes
0answers
38 views

Changing ZSH_THEME in .zshrc config file has no effect [MacOS]

I tried to change my theme in the shell configuration file (~/.zshrc) in iTerm2 but the change has not effect. (It also has no effect in the default Terminal). Here's my current config file: # ...
0
votes
0answers
27 views

Changing what iTerm considers a word boundary

With the cursor at the end of the following text: $ hello-world Jumping back to the previous word boundary puts the cursor in front of hello. I would like iTerm to consider - to be a word boundary ...
1
vote
1answer
456 views

My Bash or zsh or terminal not working anymore

I know this is probably a simple fix. But I had my terminal set up perfectly, using a bash profile as default. Then i installed iTerm and now nothing works. I cant even run the ls command when in a ...
0
votes
0answers
58 views

Xterm keys in Iterm inside Tmux

I have Tmux opened inside Iterm but regular xterm keys that used to work on linux terminals does not seem to be interpreted, for example when I press ctrl-p which is same as arrow key up for ...
0
votes
0answers
74 views

Way to restore ssh connection after reboot?

I'm using iTerm2 on Mac. Sometimes I'll have a tab or window with an active SSH session. Then I turn my computer off. Upon reopening iTerm2 post-reboot, it has scroll-back history, but I'm no longer ...
2
votes
0answers
213 views

Git autocomplete not working on macOS Mojave 10.14.5

I've tried everything I've found on the internet but nothing seems to work. Things I've tried: Instruction in the git book for bash environments This medium post Tried with brew install bash-...
0
votes
0answers
17 views

Configure Cmder so that each line in commandline ends the command by default

First time post! Apologies for prob not being savvy with stackoverflow etiqutte just yet. There's a lot of random stuff here, so I will definitely try to do better in breaking this up into multiple ...
0
votes
0answers
3k views

Anaconda on machine but conda command not found

I haven't used Anaconda in a while, I typed conda info into iTerm2 to read this error: zsh: command not found: conda I have copied the relevant .bashrc file information into the .zshrc file and still ...
0
votes
1answer
170 views

How to map a keyboard shortcut to CTRL+R in iTerm 2?

I am trying to map the Command + Shift + Z shortcut to what vim uses for redo, CTRL + R: What is the proper code I should enter in? It seems that \c is not the correct code, but I cannot find it on ...
1
vote
1answer
25 views

Finish command from history

A couple of years ago I enabled "finish text" command on iTerm2 + ZSH. For example, if I had "git commit" in my command history in a new command window if I typed "gi" "t history" would be viewable ...
3
votes
1answer
2k views

Pasting 'required text' into terminal emulator results in '^[[200~required text~'

I have noticed that when pasting into a terminal emulator, both on macOS (using Terminal.app or iTerm2.app) or in Linux (using urxvt) sometimes I get extra characters. The characters are always the ...
1
vote
0answers
37 views

Mac Terminal or iTerm: Copy the current command (not including prompt)?

I am using Terminal or iTerm (iTerm2). Let's say I've typed in a command but haven't hit enter yet. Or maybe I used the up arrow to navigate through my command history. How do I copy the current ...
1
vote
1answer
429 views

Create SIGINT (Signal Interrupt) Shortcut for iTerm2

How can I create a shortcut to send a signal interrupt in iTerm2? Ctrl+c is the default, but I would like to have Command+. (dot/period) send a break signal as it currently does in Terminal.
0
votes
1answer
72 views

Is it possible to use choose-tree mode with iTerm's tmux integration?

I've discovered that iTerm is able to natively integrate with Tmux nicely, even over ssh. However I currently cannot find a way to use the choose-tree mode, which nicely displays all the available ...
0
votes
1answer
475 views

How can I move the vim cursor with the mouse wheel in iTerm2?

This currently works as I want it to in the regular Mac Terminal, but not in iTerm2. Currently, using the mouse wheel shows my terminal and moves vim down. To be clear, I don’t want to scroll the ...
3
votes
2answers
1k views

Change tab character width in iTerm2

The tab character in iTerm2 seems to be rendered as 8 spaces by default. Is there any way to change this to, say, 2 or 4? I didn't find anything in the iTerm2 preferences or documentation.
0
votes
1answer
123 views

how can one put a shadow around an iterm2 window

In iterm2 Build 3.3.2 under defaults, if several windows are open, their boundaries are difficult to distinguish visually. All windows are uniformly the same color. There is no shading around the ...
0
votes
1answer
197 views

Weird terminal bug(?) - have to control+c after every command

I'm having a weird issue with both terminal and iterm, where when I cd into a specific directory (and every subfolder), I have to control+c to 'exit' after every command that I run, and only then can ...
0
votes
1answer
338 views

iterm2: I maximize a pane and alt+tab to something else and when I return the pane is restored to its previous size

I am using iterm2 with tmux integration and I have two problems. I frequently have multiple panes in a single tab with one of the panes maximized. If I alt+tab out to, say, my browser, then when I ...

1
2 3 4 5
7