Questions tagged [iterm]

iTerm is a full featured terminal emulation program written for OS X using Cocoa.

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

How do I make iTerm treat the Control key as both Control and Escape?

I already have my Caps Lock key mapped to Control in Mac System Preferences/Settings > Keyboard. How can I also make the Control key work as the Escape key when it's pressed and released, without ...
0 votes
0 answers
28 views

Play a sound after every command finishes in iTerm

I would like to play a sound every time iTerm 2 finishes a command. Shell I use is -zsh I.e. when I enter sleep 30 I would like it to play a sound, so I would know that the command has finished All ...
3 votes
3 answers
5k views

Vim + iTerm2 color issues

I have trouble with the right Vim configuration. I'm using the latest version of Vim as well as the latest version of iTerm2. I try to get the solarized colorscheme working, but without luck so far. ...
0 votes
0 answers
28 views

Tmux (?) or something (some other client?) adds `^@` or whitespace characters

I just wonder, sth adds ^@ or whitespace characters to my Tmux session. Tmux runs on another server, and I'm connected to it via Mosh. What could that be? In one pane, it is lots of of ^@, e.g. ^@^@^@^...
19 votes
11 answers
85k views

Is there a way to get iTerm + Bash usability on Microsoft Windows?

I've been using Bash for years and I really like iTerm. Is there a way to get that level of console usability for Micosoft's Windows cmd? By that I mean the sane tab completion, history (even if you ...
0 votes
1 answer
605 views

strange behavior of delete key in Vim on iTerm / Mac

When I press delete (Fn + Backspace) in normal mode, the cursor jumps several lines ahead. When I press it in Edit mode, nothing happens (characters are not being deleted). I have "Natural Text ...
7 votes
3 answers
15k views

How do I use the -ne flag for echo in a shell script?

I'm trying to create a shell script to take an argument and use it to name a terminal tab. So if the script's name is tabnm, tabnm "test" should rename the current tab "test" This ...
155 votes
8 answers
75k views

How can I get control+left arrow to go back one word in iTerm2?

I was reading up in the Linux manual and I noticed that it said I could use control+left and control+right to move forward and back words in the terminal while editing. "Pressing Ctrl plus the Left ...
19 votes
4 answers
21k views

How do I set up an AppleScript to open a new iTerm2 tab and change the directory?

In OS X, how do I set up an AppleScript to open a new iTerm2 tab change to a directory clear the console echo the current directory I had something like this before for regular Terminal, but I can'...
1 vote
4 answers
313 views

iTerm2: automatically remove $ sign in copied commands

When we copy paste commands from articles on the web, there is often a $ at the beginning. Is there a way to automatically remove it when pasting it into iTerm?
10 votes
3 answers
48k views

Output of history command in iTerm

I am using 'iterm' as my terminal at macosx. But I don't see all my command I type when I do 'history' and I don't see my previous command (copy and paste) using the UP arrow key? Is there a way to ...
2 votes
2 answers
4k views

Open a NEW WINDOW in CHROME in INCOGNITO Mode from terminal with specified URLS

I need help on completing a bash script which should be able to Open New Window (Not tabs) in Chrome (Or chrome canary) Open each new window in INCOGNITO Mode Open the specified URL in script My ...
214 votes
17 answers
137k views

With Bash + iTerm2, how to name tabs?

In iTerm2 (Build 1.0.0.20120203), I typically open several tabs, each of which has split panes , and is about one particular theme of work, for example revision control, coding, managing files, mysql ...
2 votes
1 answer
524 views

How to open iTerm2 version 3 in Forklift

I am looking for a solution which can open iTerm2 version 3 as the default terminal. For iTerm2 version 2 there were multiple AppleScripts on the internet which worked well for opening the current ...
1 vote
4 answers
4k views

Open iTerm2 with ctrl+ctrl?

I recently switched from TotalTerminal (formerly Visor) to iTerm2 on Mac OS X. I used to be able to open TotalTerminal with the shortcut Ctrl Ctrl (two quick taps). Is this same shortcut possible in ...
24 votes
7 answers
15k views

Programmatically set the color of a tab in iTerm2?

My daily workflow includes me Launching iTerm2 Creating 3 tabs Setting one tab each to red, orange and yellow Changing to a specific path in each tab I would like to script this process; shell, ...
3 votes
1 answer
3k views

Setting custom (Powerline) fonts in the default OSX Terminal app

I was able to set a custom font in Iterm 2 by setting the Non-ASCII option in Iterm's setting. I was not able to find a similar option in the default Mac OS Terminal. How can I do this for Mac OS ...
2 votes
1 answer
5k views

iTerm 2 Profiles/Bookmarks

I know this is supposed to be really simple but for the life of me I can't figure out how to store all of the URL's that I typically log into on the iTerm 2 Profiles page. I come from a PuTTY ...
62 votes
8 answers
107k views

Color scheme not applied in iTerm2

I haven't been able to apply any color scheme to iTerm2. It looks like that the Basic Colors are applied, but the ANSI Colors are not (as shown in Preferences>Profiles>Colors). Using Mac OSX 10.7....
14 votes
7 answers
23k views

iTerm: Can I Get Transparency in Full Screen Mode

Can I get transparency in full screen mode in iTerm?
1 vote
2 answers
1k views

ssh login causes repeating characters in my zsh

I am on a Mac using iTerm2 and zsh v5.7.1. When I login from my local computer to the remote computer using 'ssh', most of the characters are repeated at the prompt as I type. Clearing the line with ...
0 votes
1 answer
6k 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.
28 votes
3 answers
61k views

Scrolling on Mac with Tmux and iTerm

I'm using iTerm 2.1.4 and Tmux on OS X Yosemite. I'd like to be able to scroll my iTerm windows up and down but I'm not sure what controls scrolling. Does tmux control scrolling when I use it with ...
6 votes
1 answer
3k views

Homebrew: Terminal Emoticons How?

I use homebrew for package management on my mac. Today after updating homebrew I saw something I've never seen before; There was a tiny beer emoticon in the terminal. How is this being done!? What ...
16 votes
9 answers
16k views

MacOS X: How to have a handy "Open this folder in iTerm" shortcut?

I think the title states exactly what I want to do. I want a shortcut or even a button within Finder which fires up a new iTerm Tab and changes the location to the location I've open in Finder. Some ...
1 vote
1 answer
522 views

How can I add run-help to zshrc without errors?

zshcontrib suggests adding the following to .zshrc to use the run-help command: unalias run-help autoload run-help However when I add it I get the error .zshrc:unalias:9: no such hash table element: ...
65 votes
9 answers
60k views

Change iTerm2 window and tab titles in zsh

I want to label the window tabs of terminal sessions. I'm using the zshell in iterm2 on OSX. Is it possible to change the label of a window tab dynamically in the terminal?
3 votes
2 answers
9k views

Up arrow key for history not working in zsh and iTerm (MacOS)

For the last few weeks I've been unable to use the up and down arrow keys to navigate my command history in zsh. I'm using the following: Intel MacBook Pro with macOS Big Sur 11.0.1 (20B29) zsh 5.8 (...
0 votes
0 answers
299 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 ...
42 votes
6 answers
42k views

Enable mouse for scrolling only in Vim in iTerm (MacOSX)

I'd like to use the mouse in Vim only for scrolling (not to enable other Vim modes or otherwise interact with Vim). Using :set mouse=a seems to be an all or nothing operation, can this be altered? ...
5 votes
2 answers
4k views

Can I have the terminal prompt at the vertical middle of a window?

I just realized that I hunch over a lot when using the terminal since the prompt is always at the bottom of the terminal window, which is vertically maximized. I would like the prompt to be at the ...
1 vote
0 answers
151 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 ...
14 votes
4 answers
9k views

setting visual bell to flash in iTerm

I am using iTerm on OSX (leopard) to ssh to a linux machine. I run screen on the dev machine to save my work between sessions. I am not a big fan of audio bell and I don't like screen's default 'Wuff ...
11 votes
3 answers
19k views

Reuse .bash_profile for Fish in Mac

I'm using iTerm on my Mac and I have a .bash_profile that I have been comfortably using. I recently got to know about fish bash and I installed it on my Mac and all of a sudden my .bash_profile is not ...
9 votes
4 answers
12k views

How can I make terminal VIM my default editor application in Mac OS X?

I am aware of MacVim, and while it's very nice I am constantly in the terminal. Why have two programs running when I could stay in one? So the question is, how can I make VIM (run in iTerm2) the ...
2 votes
1 answer
2k views

My iTerm font seems to dark for me

My iTerm font seems to dark for me. Any idea to change the brightness?
41 votes
8 answers
26k views

How Can I Speed Up Terminal.app or iTerm on Mac OSX?

Every time I launch either iTerm or Terminal after not using it for a few hours, it takes anywhere from 10-20 seconds to return a prompt. The screen is blank, and although I can type I can't actually ...
2 votes
1 answer
3k views

How can I change the line height in iTerm2?

I've tried looking through iTerm2's text preferences, but I don't see a way to change line height. How can I add more space between lines in iTerm2 for Mac?
2 votes
3 answers
7k views

need to source bash_profile in each new iterm window

I am on macbook pro, el capitan. I have aliases set in .bash_profile, which work in the first instance of iTerm, however they are not recognized if I open a new iTerm instance, I have to do source ~/....
0 votes
1 answer
444 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
1 answer
1k views

How to reload iterm plist file?

I want to change my iterm background photo in every 10 mins. So I tried to use cmd /usr/libexec/PlistBuddy to change the config file com.googlecode.iterm2.plist. And here is my command: /usr/...
0 votes
1 answer
1k views

iTerm2, updating manually

I downloaded older version of iTerm2. Currently I have iTerm -> iTerm2 and iTerm2 in /Applications/iTerm.app i.e. I update iTerm. Now, I want to update iTerm2, but not through iTerm2's Check ...
1 vote
0 answers
153 views

How to clear out white space on top of zsh/iterm

Hi I have been bugged by this for a while. Everytime I open up a new terminal window, there's a huge white space on top that doesn't do anything, same thing with my VSCode where I set the terminal to ...
12 votes
1 answer
11k views

Iterm2 : how to display status bar

In the Iterm2 online docs: Go to Preferences > Profiles > Session. Turn on Status bar enabled. but I don't find this setting in the preference pane: Preferences screenshot Obviously the version ...
15 votes
3 answers
18k views

Set default colour for all iTerm2 windows

How can I set the default terminal colour for all new iTerm2 windows?
2 votes
0 answers
954 views

Vim Iterm extremely slow and laggy compared to Linux machine with same setup

Vim and iterm is very slow on macos. There is noticeable lag when scrolling down the page when holding down jk. Many plugins also slow down vm dramatically such as syntastic. For example, with ...
3 votes
1 answer
881 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 ...
0 votes
0 answers
123 views

Create keyboard bindings for go back word and go forward word in iTerm using config file?

I have tried adding the following to my ~/.inputrc but it doesn't work "\e[1;9D": backward-word "\e[1;9C": forward-word What more do I need to do?
63 votes
3 answers
24k views

Select text in iTerm using keyboard

Is there a way to select text in iTerm OSX using keyboard?
11 votes
1 answer
5k views

iTerm window highlighted on the current line

I do not understand why the active terminal command line is highlighted. I am using iTerm2 and also have zsh and oh-my-zsh installed, but even after disabling them I still see this. Any ideas?