Questions tagged [iterm]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
77 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
1answer
108 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
0answers
42 views

Word appearing in every line in macOS Terminal

I have a big problem with my Mac terminal, I have a stuck word in it - "export" at the beginning of every command line that I type. The stuck word is not influencing the lines, but it is very annoying ...
0
votes
1answer
332 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
1answer
154 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 ...
0
votes
0answers
110 views

Save commands history in Iterm2

How I can save commands history in Iterm2? Because if I close Iterm2, and open it again - commands history are delete?! What is problem to save commands history in Iterm2
0
votes
1answer
301 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?
1
vote
0answers
33 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 ...
8
votes
1answer
6k 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 ...
1
vote
0answers
390 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 ...
1
vote
1answer
322 views

My iTerm font seems to dark for me

My iTerm font seems to dark for me. Any idea to change the brightness?
1
vote
2answers
45 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?
2
votes
1answer
791 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
1answer
232 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
0answers
99 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?
5
votes
1answer
2k 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?
1
vote
1answer
446 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
63 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
40 views

Unsplit tabs in iterm

I had attempted to tear a tab from iterm by dragging it out into its own window. Somehow the result instead is that it were added as a second panel below the first one: Now how can either of the ...
0
votes
1answer
381 views

iterm shell integration not integrating

I'm trying to switch to iterm from terminal. I install latest iTerm2 (3.1.5), select iTerm2 in the top left hand corner, and click 'Install Shell Integration'. Basically, I followed these instructions ...
1
vote
1answer
1k views

Type text into iTerm terminal from apple script

I'm trying to paste text from apple script to iTerm. activate application "iTerm" tell application "iTerm" tell current tab of current window set cmd to "command" keystroke cmd ...
2
votes
1answer
2k 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 ...
1
vote
0answers
219 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
1k views

iTerm2 Bash/Prompt colors faded/different from terminal?

I'm so confused and I've been pulling my hair out for hours now. I've been trying to get my bash text to have the same color as I do on my desktop, it works fine in the default terminal app on mac, ...
1
vote
1answer
355 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 ...
8
votes
3answers
11k 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 ...
2
votes
1answer
1k views

How to select text in Iterm using hotkeys

I am using iTerm as terminal and zsh with oh-my-zsh as shell. Sometimes I would like to select part of entered command only using hot keys. How can I do it?
3
votes
2answers
2k views

On MacOS Sierra beta 5 using iterm 2 and tmux, I have lost the ability to copy/paste in tmux.

I want to copy/paste in my tmux sessions like I was able to with El Capitan. I just installed MacOS Sierra and I no longer have this functionality. I didn't realize how often I utilized this ...
1
vote
1answer
535 views

Is there a copy-mode ( like in tmux ) for ITerm2?

I like the copy-mode in tmux because it lets me search,copy text in the terminal without reaching for the mouse. The vi-bindings in copy mode is an added bonus. Is there anything similar for iterm2 ?
9
votes
1answer
7k views

How to keep terminal window title in sync with tmux window

I am using a program called "Timing" to track my time. Timing uses the name of the current window in iTerm for categorization purposes. I'd like to set the current title of iTerm to match the name of ...
1
vote
0answers
317 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
3answers
2k 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 ~/....
16
votes
2answers
27k 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 ...
0
votes
1answer
950 views

ZSH in iTerm2: Why my prompt can only use 8 colors?

I am trying to set a color prompt in ZSH ($TERM=xterm-256color), but it can only get 8 colors out: Only the bright version of the colors. This is only the case for prompt, while the other applications ...
1
vote
1answer
1k views

Trigger an echo command after ssh in iterm2

I'm trying to trigger the following command after "ssh somehost": export PROMPT_COMMAND='echo -ne "\033]0;$HOSTNAME\007"' nothing seems to work, any suggestions?
2
votes
1answer
514 views

How can I get vim autocompletion working in iTerm

I recently switched from MacVim to regular Vim in iTerm. I've been encountering an issue where I can't get vim's autocompletion to trigger using Ctrl-N. Instead, I get iTerm's autocompletion which ...
8
votes
3answers
3k views

Jumping to previous prompt in terminal

In a terminal, are there any shortcuts to jump to a previous/next prompt? Scrolling up and trying to find the start of a log slows down my workflow. I'm using iTerm on OSX, but this should be ...
0
votes
1answer
1k views

How to access Solarized color values within bash script

I'm trying to make my bash PS1 prompt colors according to the Solarized theme. I have solarized installed and working for iTerm2, but so far have been unsuccessful in creating a custom PS1 prompt that ...
0
votes
1answer
1k views

color scheme setup for iTerm

How do you setup color scheme of iTerm on Mac? For color scheme, I mean using different color to display folder name, file name, machine name, etc. thanks in advance, Lin
0
votes
0answers
1k views

Highlight bash output in iTerm 2?

I've followed the instructions for installing Solarized on iTerm 2, on my new OSX Yosemite machine. It looks as though the background and basic colours are being applied, and $TERM produces xterm-...
1
vote
0answers
361 views

Iterm on top of all windows? [duplicate]

Is there a possibility for Iterm to always be on top? I have seen some issues but don't know whether it's already implemented. Issue 2640 in iterm2: Always on Top function
6
votes
1answer
4k views

How to configure tmux/iTerm to display session name as title in terminal tab?

I am getting started using tmux and iTerm2 on Mac OS X. Currently, all my tabs are titled "tmux" (assuming it's just displaying the process name) which makes it difficult to find the tab that I want. ...
9
votes
2answers
4k views

iTerm2 pin Visor (hotkey) window

Is there anyway to pin (keep on top) the Visor / hotkey window for iTerm2? Every time I give focus to another window (e.g. Chrome for documentation), iTerm2's hotkey window disappears. I have to ...
0
votes
1answer
896 views

ssh session immediately on starting xterm

What's the most elegant way to start an xterm window that, instead of opening a bash shell for the local computer and requires me to execute my ssh command manually, opens an ssh session for remote ...
1
vote
0answers
77 views

Constant name of iterm2 tab

I can change the title of terminal tabs in iTerm2 by pressing CMD-I and setting some name. But as soon as I open e.g. vim and close it, tab name is reset to what my prompt says, instead of being "...
3
votes
1answer
2k 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
1answer
675 views

Create keyboard shortcut in iTerm that performs an action in different pane

I have an iTerm setup where I often have vim running in one split pane, and guard running in a different split pane. So the keyboard focus stays almost exclusively in the pane running vim. Once in a ...
1
vote
3answers
2k 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 ...
2
votes
1answer
421 views

How do I issue M-S-<left-arrow> to Emacs running in iTerm on Mac OS Mavericks?

When I press that key combination I hear a bell and see 0D chars printed to the buffer instead of the command bound to that key chord being executed (org-table-delete-column in this case). M-<left-...
2
votes
1answer
2k views

iTerm 2 disable Fn keys

I'd like to achieve the following: When iTerm 2 is my active window in OSX ML, I would like the FN keys to represent F1 - F12 and NOT the Fn's like Brightness and Sound. Whenever NOT in iTerm I would ...