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 [iterm]

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

0
votes
0answers
16 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?
0
votes
1answer
175 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?
0
votes
0answers
34 views

How to toggle visibility of a window in ubuntu with hotkey?

I like the toggle visibility feature of iTerm2 a lot. I am wondering if there are ways to achieve the same feature for ubuntu windows? (Set a hotkey for an application. Press the hotkey when the ...
1
vote
1answer
143 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
21 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
104 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
470 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 ...
1
vote
1answer
539 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
114 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
528 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
238 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 ...
3
votes
1answer
4k 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
510 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
314 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 ?
5
votes
1answer
4k 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
234 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
2answers
413 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 ~/....
7
votes
1answer
11k 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
675 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
798 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
339 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 ...
7
votes
3answers
1k 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
818 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
758 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
1answer
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
330 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
3k 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. ...
8
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
619 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
69 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 ...
1
vote
1answer
486 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
1k 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
348 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 ...
3
votes
2answers
6k views

How do I set iTerm as the default terminal in OS X?

I want to configure iTerm2 to be the default terminal on my Mac (Mountain Lion 10.8.4), so that when I right-click on a folder and choose "New Terminal Tab at Folder", it should open iTerm. How can I ...
2
votes
2answers
1k views

Set Tab Title to your current working directory instead of the current job name in zsh iterms

I'm running iTerms on my Mac OS X with zsh. With my workflow I have to switch between tab a lot and sometime I have to spend too much time just to find which tab is the one I'm looking for because all ...
33
votes
6answers
19k views

How can I partially clear my terminal scrollback?

I want to partially clear my terminal scrollback history, but only from where I have selected with my mouse in the scrollback and up. Is this possible? I'm on a Mac, and I use iTerm2 and Terminal.
6
votes
1answer
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 ...
2
votes
3answers
3k 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. ...
1
vote
1answer
98 views

File Corruptions when using Vim on iMac

I'm experiencing some strange file corruptions when editing PHP files in VIM/iTerm. This is not exclusive to these but the corruptions are slightly different in Nano. Same issues appear in the ...
1
vote
1answer
632 views

How can I set TextMate as the default application when clicking on filenames in iTerm?

I'm using iTerm as my default bash shell with Mountain Lion One of the features is when you click on a file name in the shell, it opens it in a TextEditor. At the moment though, each time I click a ...
1
vote
0answers
2k 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 ...
0
votes
1answer
3k views

iTerm.app vs Terminal.app

So, I just downloaded iTerm2. I am using zsh in both the apps. iTerm seems to be faster than Terminal. What things matter when you have a wrapper application around a shell? I want to use iTerm but ...
2
votes
0answers
79 views

Is there a way to store certain shortcut variables in iTerm or Terminal.app so that we can access them from any remote machine ?

I use alias for setting up shortcuts so that i need not type out often lengthy directory paths and such. But i ssh into multiple machines often and i cannot alias a bunch of stuff into all the remote ...
1
vote
1answer
151 views

Bind key in vim for switch window

Operation System: OS X Console: iTerm sh: zsh This worked fine i go to bottom window from top: map <c-down> <c-w><down> imap <c-down> <esc><c-w><c-down> ...
1
vote
1answer
897 views

iTerm up arrow autocomplete

Recently, the up-arrow to scroll in my bash history in iTerm 2 stopped functioning as it did before. In the past, if I started typing a command (let's say, `curl') and then pressed up, it would only ...
5
votes
2answers
6k views

is there a linux equivalent of iTerm(mac) sending command to multiple tabs functionality?

in iTerm, you can send a command to execute simultaneously on a set of already opened tabs. Is there a way to do this in linux (with gnome-terminal preferably)? for instance, supposed that I had 10 ...