Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [iterm2]

iTerm2 is an open source Terminal replacement for OS X

0
votes
0answers
31 views

Changing the font size of Tab information in Iterm

I use a High Resolution external monitor at work and increase the font size in my terminal for better visibility. But the text on the tab bar is stuck at the default size. Changing the font size does ...
0
votes
1answer
21 views

Ctrl+b appearing as '^B' at command line

I noticed this behavior in tmux, but it also happens when I have no session attached. Instead of entering as the command key binding Ctrl+b, ^B is printed to the command line. I don't have a .tmux....
0
votes
1answer
10 views

Make cmd-click on a file name in iTerm add that filename to the command

By default, iTerm lets you cmd-click filenames and urls to open them with the system's default app. I want to be able to change that so it adds the filename to the command I'm currently typing. This ...
1
vote
0answers
32 views

Set window title in iTerm with zsh

I am using iTerm2 in my mac with zsh. I have set DISABLE_AUTO_TITLE="true" within .zshrc. Now I can use title to set window and tab titles. But it the title which appears in the title has the running ...
0
votes
0answers
23 views

Select full word in iTerm2 using alt + shift + arrow behavior similar to vscode and other editors

Followed this answer Select full word in iTerm2 using alt + shift + arrow and its functional, I would prefer it to behave like vscode, atom, and sublime if possible. Desired Behavior: Actual ...
0
votes
0answers
65 views

Please make my terminal behave like a word processor because I'm old and jaded

How do I make the terminal input behave like a multi-line word processor that lets me select text, delete some text (no hex codes), move around, then only really send it over the wire when I press ...
3
votes
1answer
83 views

Is it possible to use vim key bindings in iterm2?

I want to use w for next word and b for previous word. If I could do more than that I would be even happier. I use bash if that matters.
0
votes
0answers
40 views

How to change iterm theme with keyboard shortcut?

I want to switch the theme with a keyboard shortcut but I can only find information on switching the colour schemes. I looked in the custom key mappings and the view tab on the menu bar but I couldn't ...
0
votes
0answers
64 views

iTerm2: Is there a way to undo clear session / scrollback buffer (cmd+K)?

I use iTerm2 all the time and sometimes find myself by accident clearing the scrollback buffer by pressing cmd+K and can't find a way to undo that keypress. Does anyone know of a way to undo it?
3
votes
1answer
174 views

Why does iTerm paste when I left click in the terminal

Every so often I come back to a iTerm2 (v3.1.6) terminal window and for whatever reason when I left click anywhere in the window it will paste whatever is on my clipboard. This has happened many times ...
0
votes
1answer
42 views

How can I change the page depth when using screen on iterm2 to connect to a router?

Let's say I'm connecting to a router with 'screen' through a terminal (iterm2) and I want to view a log or a configuration. It will only display 1 page at a time and I have to press Enter or Space to ...
1
vote
0answers
33 views

Can I display whitespace characters in iTerm2

In most text editors I can display whitespace characters, e.g. tabs as arrows ⟶ , spaces as middle dots · Is it possible to do this in iTerm2?
0
votes
0answers
16 views

Using profiles for terminals at the same time

I want to be able to use Terminal (I am using iTerm2 and Oh My ZSH) just like Google Chrome, where I have several profiles so I can use different extensions and all my logins and history is kept ...
1
vote
0answers
23 views

Scroll to bottom on new output

I have a script doing some monitoring tasks. It will print a line every once in a while if some background event happens. As of now, if I am scrolling back with iTerm2, new lines from my shell ...
0
votes
1answer
160 views

How to update Mac iTerm2 terminal prompt

I am using Mac 10.13.2 High Sierra. I made the following .bash_profile file to see the file path along with the prompt and if it has any Git repository it shows the Git status as well. All is working ...
1
vote
0answers
29 views

iterm itermplot tmux scroll makes plots disappear

I have a tmux session in my iTerm2 window with a single pane. When I plot something using ipython (with itermplot) it appears as expected. As soon as I switch to scrolling mode ( [ ), the plot ...
0
votes
0answers
139 views

port sdkman installation from bash to zsh

Preamble I have installed sdkman on my bash terminal on Mac OSX which worked perfectly. I recently switched to zsh+iterm2+oh-my-zsh and, sdkman and the utilities I installed using it are not working. ...
1
vote
1answer
171 views

integrate tmux tabs with vim tabs

I'm trying to simplify the way that I navigate between tabs in my terminal. Using ssh <workstation> -t 'tmux -CC attach', I can get iTerm to display tmux tabs as native macOS tabs (and therefore ...
1
vote
1answer
50 views

Make alt/option key work as in all other applications

I'm using the alt/option key quite extensively, e.g. square brackets, curly brackets, jumping left/right etc. The only way I've found to set alt/option to behave as it should (as in all other ...
0
votes
1answer
142 views

iTerm2 outputs random characters when the remote tmux exits abnormally

I use tmux on my remote terminal. I found that when the remote terminal was disconnected abnormally (e.g., I just closed my laptop without exiting remote terminal normally), my terminal on iTerm will ...
0
votes
0answers
86 views

New iTerm2 tab with the current tmux directory

Is that possible to using ⌘T to open a new iTerm2 tab but the default directory is the current tmux directory? Currently, the default directory is the one where the current tmux session was created. ...
0
votes
0answers
80 views

iTerm2 shares the same instance across all macOS workspaces

Suddenly after a computer restart, my iTerm behaves differently, as the same iTerm2 instance is shard across all macOS workspaces. If I open a new tab or open a new windows of iTerm2, these will ...
0
votes
0answers
43 views

git show on double click of commit hash in iTerm2

I am using iTerm2 with oh-my-zsh. git log --oneline shows me the git tree: 0b99548e commit A eb980d4c commit B e7e5e043 commit C In order to view a commit, I need to do the following steps: double ...
0
votes
0answers
81 views

Can one create an iTerm / Terminal (MacOSX) Secure session?

I use the terminal for doing things such as creating passwords by selecting random words from /usr/dict. I prefix the commands with a space so they aren't saved in the shell history. I discovered to ...
2
votes
1answer
82 views

Unable to start Firefox on CentOS 6 from iterm2 on Mac

I have installed Firefox and xauth on the CentOS 6.6 server as follows: sudo yum install firefox sudo yum install xauth On my Mac, I am using iTerm2.  On my iTerm2 session, I also exported my ...
0
votes
0answers
213 views

Inverse bolded % at zsh prompt

This is minor but it's driving me crazy. My prompt is followed by an inverse bolded % like so: https://i.stack.imgur.com/Lkx36.png I want it to go away. I am using: zsh with oh-my-zsh on iterm2 ...
1
vote
0answers
119 views

How to remove username segment from powerline

I'd like to show only the dir name. Right now it's like this: I'm using macOS + bash + iTerm. I've tried: editing the ~/.config/powerline/config.json changing the $PS env (which works without ...
0
votes
0answers
105 views

Remove color symbols in iterm2 session log

I use iterm2 sessions logs to save history in my terminals. It's a great feature however when I open the log file I see tons of symbols like ^[[1m that makes it very hard to read. I guess these are my ...
0
votes
1answer
232 views

iTerm2 doesn't recognize Ctrl-Left and Ctrl-Right

TLDR; I couldn't get the Micro editor to recognize Ctrl-Left and Ctrl-Right key combinations. I thought I maybe have to add escape sequences to iTerm2 (screenshot). The Keyboard Shortcut input field (...
1
vote
0answers
521 views

How to completely disable iTerm2 pop up messages

I'm using iTerm2 on my Mac, build 3.1.3, and I am working with two tabs. One tab has my Python code in vim. The other one is where I actually run it with python code_here.py. However, each time I ...
1
vote
0answers
126 views

syntax highlighting breaks off on vim as you page up/down (on OSX terminal and iterm2)

This is a weird bug the problem is the syntax highlighting (say zenburn) on vim randomly appears and disappears as I page up and down (using ctrlu and ctrld).. for example compare these two renders ...
0
votes
1answer
33 views

how do I paste an icon to the terminal

I'm using iterm2 on mac. I'm using the oh-my-zsh and want to add my custom icons like these I wondering if there is a list of all available icons and if mine is not there, how do I add it. I want to ...
2
votes
2answers
1k views

iTerm2 (version 3): Individual history per tab?

I’m using iTerm2 (version 3.1.beta.5) and like it. But something that it has been doing for a while that's really annoying is that the command history is shared between tabs. E.g., in your first tab, ...
0
votes
1answer
205 views

How to set a background color for the 'tab' character

I want to apply a background color to tabs in iTerm 2. I tried using this: echo -e "\033[42mas\tdf" The above shows "as df" in Mac Terminal with the entire text colored with green background, but ...
3
votes
2answers
1k views

Copy the output of the last command in iTerm2

With the default Terminal.app, one can select the previous command output with Cmd + Shift + A and then copy it with Cmd + C (source). Is there a similar shortcut for iTerm2?
0
votes
1answer
1k views

Custom iTerm appearance doesn't save after quitting iTerm

I'm new to Mac. Recently, I just installed iTerm2 and I also changed some of its fonts and theme (Oh My Zsh). All the changes worked perfectly but when I close iTerm everything reset to its default ...
2
votes
0answers
201 views

Moving mouse in iTerm causes characters to be to printed to prompt

I am having an issue with iTerm that happens to me intermittently. When I am using iTerm and I move the mouse up and down, or click a bunch of random characters are printed to the prompt: I am in a ...
0
votes
1answer
51 views

Can not bind Ctrl-o in Bash inside iTerm2 on macOS Sierra

I am not able for the life of me to rebind Ctrl-o on iTerm2/Bash. Here is my stty -a flags for cchars: cchars: discard = ^O; dsusp = ^Y; eof = ^D; eol = <undef>; eol2 = <undef>; erase = ^...
0
votes
1answer
90 views

Error on iTerm2 fish shell load: `function: Illegal function name '-v'`

On iTerm2 load: Last login: ... on ... function: Illegal function name '-v' ~/.iterm2_shell_integration.fish (line 86): function -v _ underscore_change if [ x$_ = xfish ] ...
0
votes
1answer
63 views

Nano opens extremely slow on mac while using ZSH?

Whenever I type try to open a file using nano on my mac while in ZSH, it takes about 4 seconds before nano actually opens and I'm unsure why. Does anyone have suggestions to debug this issue and ...
1
vote
0answers
194 views

How do I use tmux 2.4's double/triple click to select text with bash/iTerm2?

Following on this question from 2013 and this question from 2015, has anyone identified how to use tmux 2.4's new Support for mouse double and triple clicks to select text without modifier keys? I'm ...
0
votes
1answer
200 views

How Can I Perform ALT + > in Iterm2

In a standard bash shell one can go backwards through the history by hitting the UP key, and forwards by hitting the DOWN key. If you've hit up a bunch and want to get back to the start you can hit ...
1
vote
0answers
149 views

Why does fish shell create a hidden process in iTerm2

I've moved from bash to fish shell in iTerm2. However, whenever I start iTerm2, I receive the following error message: A session ended very soon after starting. Check that the command in profile ...
0
votes
1answer
175 views

zsh in iTerm2 showing spaces in place of newlines

I've been using iTerm 2 on a new MacBook for a couple of days with ZSH. When I run a command which produces several lines of output, the second line appears to start after the end of the first. For ...
1
vote
0answers
69 views

Why is a (working) iTerm2 not staying in the Mac taskbar?

I have iTerm2 installed in /Applications on my MacBook Pro (running OSX Sierra), but if I right-click and select the option to pin it to the taskbar and log out and in again, there's some form of the ...
0
votes
1answer
160 views

iterm2's drop-down auto command complete doesn't work on remote sessions

On remote hosts via ssh the cmd + ; command works in displaying part of the suggested command but the "Auto Command Completion" feature doesn't. How can I make the shown feature here work on remote ...
2
votes
1answer
2k views

What does “Login shell” do?

Recently I experience slow terminal launch time, so I looked into it and found an interesting thing. I am using iTerm on MacBook. There is an option choosing the default behavior: If I chose "Login ...
1
vote
0answers
401 views

Command-L “Clear to the previous mark” equivalent in iTerm2

In Mac OSX there is the command-L command to "clear to the previous mark" I was curious if there is a command equivalent to this in the iTerm2 terminal because I would like to switch over, but I use ...
9
votes
2answers
2k views

iterm2: Ctrl-C doesn't work sometimes

I'm using iTerm2 on Mac OSX (10.10.5). Recently I encounter something very strange: after using iTerm2 for a while, Ctrl-C would stop working. Initially it was fine. Only after a certain period of ...
2
votes
1answer
2k views

Rails “Cannot read termcap database;”

Whenever I start my rails console I'm running into two problems: I'm getting these cryptic errors messages. My control-L isn't working (it's intended use it to clear the screen) Console output: $ ...