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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [iterm2]

iTerm2 is an open source Terminal replacement for OS X

3
votes
1answer
66 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
40 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 ...
0
votes
0answers
15 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
15 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
18 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
82 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
22 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
59 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
108 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
48 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
60 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
55 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
42 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
35 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
58 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
72 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
46 views

Unreadable colour in iTerm with spacemacs colour scheme for ls on /dev/

Running ls -l /dev/d* results in unreadable output: I reckon that this due to my colour settings in iTerm: What can be done to change it? Running ls -l on a directory where entries do not have ...
0
votes
0answers
40 views

iterm2 overlapped by macos top bar in full screen

I've enabled a new option "Exclude iterm2 from Docker and App Switcher" and now macos top bar overlaps iterm2 when it's in a full-screen mode. Is there a way to fix that?
0
votes
0answers
160 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 ...
0
votes
0answers
32 views

iterm2 - Disable any_key disappearing window when SSH timeout

When I have an SSH session and leave it idle for a period of time, it times out, as expected. When I get back to my terminal, unknowing that the session timed out, I will press [return] or some other ...
0
votes
0answers
49 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
84 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
133 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
263 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
93 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
0answers
75 views

Iterm2: Autocompletion does not show suggestions

I am using macbook pro for working on different linux servers. I have iterm2. I have checked view -> auto command completion option so whenever I start typing, I should see suggestions in a drop down. ...
0
votes
1answer
32 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
680 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
0answers
137 views

Iterm stuck at top of screen

I'm not sure if I'm doing something stupid, but I can't seem to get my iTerm off the top of the screen. It's pinned in the top left / top right and top edge. I can resize it from the top, but then it ...
0
votes
1answer
174 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 ...
2
votes
2answers
805 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
631 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
124 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
36 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
83 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
53 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
142 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
113 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
132 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
118 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
58 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
115 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
990 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
286 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 ...
8
votes
2answers
743 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
0answers
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: $ ...
2
votes
1answer
529 views

iTerm Color Scheme | Profile Command

I'm using prezto with iTerm and in my .zshrc, I have the following line that changes the color scheme: sh ~/.vim/plugins/gruvbox/gruvbox_256palette_osx.sh However, sometimes when I click ⌘ + R, I ...
1
vote
1answer
209 views

The arrow keys, even when disabled in vimrc, type ABCD then go into insert mode. Why?

When I hit the arrow keys in vim I get the behavior illustrated in this illustrated Gif. I would like to only use hjkl to navigate. Any time I hit the arrow keys (up, down, left or right) I want it ...
0
votes
1answer
141 views

iTerm2: Get the tab number from bash shell

For the day to day work, I login to a remote machine from my Mac through VNC. The font rendering in VNC viewer, and the resolution etc are horrible when seen on the retina display. So I use iTerm2 + ...
0
votes
1answer
277 views

AppleScript for iTerm2 to activate or create session

I'm trying to write an AppleScript for iTerm2 that for a fixed profile ("session"?) name, let's say "Dev Server", checks whether there is a tab with that profile in any window (or just the current ...