Questions tagged [iterm]

iTerm is a third party replacement for the built-in Terminal application.

Filter by
Sorted by
Tagged with
3
votes
1answer
260 views

Passing alt/opt key sequence over ssh to remote host with iTerm

Just learning the ropes of my new MacBook Pro. I have a linux workstation at the office that I use to host a number of tmux sessions, which represent whatever Im working on at a given time. If out ...
3
votes
1answer
390 views

Two red lines/bars in iTerm2 window and error message about session ending, what is going on here?

I've been experimenting with threading and running bits of python from iTerm in MacOS yesterday. Today I opened iTerm and two windows opened, one with thick red lines inside it. I received a Warning ...
3
votes
1answer
296 views

iTerm2 & Terminal show my Mac serial code

I had problems with colours not showing in iTerm2 for me. I tried a few fixes I found online which didn't work and now my serial number of my laptop is showing in iTerm & Terminal. Anyone know how ...
3
votes
2answers
498 views

iTerm text search is in reverse order

I'm running iTerm2. When do a text search ⌘ F, pressing Return moves the highlighted occurrence back (the previous occurrence). Is there a way to make it move to the next (forward) occurrence?
3
votes
1answer
717 views

Changing iterm2 Terminal Color

Is there a way to bold the color of the current active terminal tab in iterm2? I do not see an option to do that on the appearance tab of preferences. I know I can change the tab style, but I still ...
3
votes
1answer
1k views

How does Sublime open file with cmd+click on its path in Terminal?

For example: $ ls -lsa 4 -rw-r--r-- 1 denis 404 Jul 16 18:36 pgadmin.log cmd+click on pgadmin.log Sublime opens pgadmin.log (if path is 'pgadmin.log:12', it opens it and sets cursor to 12th ...
3
votes
2answers
2k views

How to get Ctrl+return key binding for emacs in iTerm2 working?

I have Control+Return key bound to a function that I use very often. This works when i run emacs in x-windows. But when I run emacs in iTerm2 control+return just has the effect of line-feed (i.e as if ...
3
votes
1answer
178 views

Path into PS1 prompt is broken (\n) on different lines when it is too long

I am using iTerm2 on MacOS Catalina . Here is my PS1 into ~/.bashrc , using a function ps1 : function ps1 { # PROMPT SECTION BLUE='\[\033[0;34m\]' LIGHT_CYAN='\[\033[1;36m\]' ...
3
votes
1answer
865 views

What is the exact difference between 'tty' and a 'console'?

I know the general idea of console, tty as here explains https://unix.stackexchange.com/questions/4126/what-is-the-exact-difference-between-a-terminal-a-shell-a-tty-and-a-con But when run who (using ...
3
votes
2answers
1k views

Read iTerm2 last session output history

This is probably a long shot but it would be really handy if there is a solution. I am logged in on a work computer I currently cannot access. I know the output of a long running job I previously ...
3
votes
1answer
2k views

tmux jump words as with zsh

I moved from just using zsh to using zsh inside tmux. As my terminal is iTerm2 for both combinations. I have the following lines in my .zshrc to enable jumping words on a bare zsh command line using ...
3
votes
3answers
382 views

Automator service script ALWAYS launches application, disregarding conditional

I wrote a little service script to open an iTerm terminal window on an arbitrary folder on Finder. I want it to check if iTerm is running, and if it is to open the terminal session in a new tab ...
3
votes
2answers
563 views

Closing other tabs in terminal on Mac?

I am using iTerm2, but I wouldn't mind switching back to the original terminal for just this feature. I open hundreds of SSH tabs every day and often end up working after a while only working on 1 ...
3
votes
1answer
2k views

Tmux with iterm2 integration won't start when invoked with tmux -CC

I'm using iterm2 Build 1.0.0.20130302 and would like to get tmux working. I followed the instructions at: https://code.google.com/p/iterm2/wiki/TmuxIntegration Everything compiled and installed ...
3
votes
1answer
8k views

How do I get vim to work at 256 colors in iTerm?

I just got a new iMac, and installed iTerm (0.10). On my last laptop 256 color mode worked fine, but I'm having trouble getting this to work on my new Mac. I copied over all the settings, set $TERM ...
3
votes
0answers
304 views

iTerm2 keeps switching desktops using dropdown

I'm using multiple iTerm2 windows on different desktops on my El Capitan and It's irritating how it keeps switching desktops when using Quake-like drop-down termina. Steps to reproduce: 1) open ...
3
votes
0answers
2k views

Iterm2 - Export a single profile's settings for distribution to others

I've been getting used to working with Iterm2 over the past few weeks. I have a very specific profile configuration requirement for a legacy business application. The configuration for the profile ...
3
votes
0answers
158 views

de-grouping iTerm2 windows

Activating iTerm2's "hotkey window" (i.e. drop-down console) also brings to front all other iTerm2 windows. Is there a way to avoid this, making OS X treat each window as a separate application rather ...
3
votes
2answers
2k views

How do I re-associate HTTP links with my browser in OS X?

I installed iTerm2 the other day, and was playing around with it. In the process I seemed to have messed up the handling of HTTP hyperlinks on my system. Sometimes (annoyingly, not every time, which ...
2
votes
1answer
804 views

How did I set this annoying window margin on MacOS app and how to remove it?

Some time ago I pressed a weird key combination that seemed to add a margin to the top and bottom of active application window (in this case, iTerm2). See screenshot below: It doesn't happen on any ...
2
votes
4answers
3k views

Changing color of folders, files, execs on iTerm2

on iTerm2 bash If there any way to change the color when 'ls' so i can quickly know if it's a directory, a file, a script, exec? Just like the Ubuntu terminal so you know a directory color for ...
2
votes
2answers
2k views

Where is the option to disable iTerm2 confirm window on Log off?

I have MacBook Pro with macOS Sierra. When I try to Log off system I get annyoing confirm dialog each time. Here is it: It says that it was prompted because of some option enabled. This option here: “...
2
votes
1answer
3k views

'soft return' in iTerm2

I'm just wondering is there a way to enter a new line in iTerm 2 without executing the line being typed? I am looking to make use of some relatively long commands to automate some things, but not ...
2
votes
4answers
1k views

How do I use cmd+1 as a keyboard shortcut? cmd+2, cmd+3, etc, work

In Preferences > Profiles > Keys I've mapped cmd+1 through cmd+9 but cmd+1 alone does not respond. Does anyone else have this issue? This is for the latest iterm2, v2.1.1 and several earlier ...
2
votes
1answer
96 views

Show applications in terminal

I am a developer and I want to access the applications folder through terminal. After typing in cd Applications and then ls. It doesn't show any of the contents inside the folder. I also tried ls -a ...
2
votes
1answer
442 views

How do you change colour scheme between *panes* inside iTerm2 + oh-my-zsh?

I have seen a lot of solutions that allow changing of tab colour upon remote accessing into a server (see for example: https://gist.github.com/wadey/1140259 and many more). What I want is to change ...
2
votes
1answer
2k views

How to switch off sharing of history between iTerm2 tabs when setopt command not found

I am experiencing the same problem as in this question: The history is shared between my iTerm2 terminal tabs: how can I switch that off?. As the user describes, my history is shared between different ...
2
votes
2answers
349 views

Why does my iTerm2 launch with an X in it's path?

After upgrading to El Capitan, then working on installing Rails, my iTerm2 shell now opens with x >, instead of just >. Can someone please explain why this is happening, and help me figure out ...
2
votes
1answer
1k views

LSOpenURLsWithRole() failed with error 10810 in iTerm2 running tmux on Yosemite

[~%]open ~/Pictures/upload.png LSOpenURLsWithRole() failed with error -10810 for the file /Users/bryanhunt/Pictures/upload.png. Before this update I used to be able to open images, PDFs, etc. from ...
2
votes
2answers
5k views

Can I tell iTerm 2 to change color when I'm root

I would like to tell iTerm2 to have red text whenever I'm root when logged into a server. Note: I'm not able to change any configuration on the remote server.
2
votes
1answer
111 views

iTerm2 error notification ‘Couldn't log to 2020…’

Every time I open a new window iTerm2 says "Couldn't log to …" I restarted my Mac which is on High Sierra but the problem continues. How can I solve this problem?
2
votes
1answer
79 views

How to make display PDF images with mouse hover in iTerm2 after " ls -l '?

On Catalina 10.15.2, Sometimes, in iTerm2 terminal, after a ls -l command, I can visualize some pdf files (a popup window appears suddenly) when my mouse is over the list of PDF filenames. But this ...
2
votes
1answer
789 views

Folder icon in titlebar for iTerm2

macOS's default terminal shows the current directory as an icon in the titlebar (called a proxy icon). I can use it to navigate up, or drag the icon to another window to insert the path. Is there a ...
2
votes
2answers
2k views

Sending ctrl+function key on iTerm2

Byobu has some keybindings that require a modifier key and a function key, like Shift+f2 or Ctrl+f7. Unfortunately macOS picks these up instead and does god knows what with them. How do I send these ...
2
votes
1answer
999 views

Understanding “sending hex code”

Recently I've installed iTerm2 and customized key mappings. For example, I wanted Command+Delete to remove the entire line. In order to achieve this I created a new key mapping where Command+Delete ...
2
votes
1answer
827 views

iTerm new window starts minimized?

For some reason, whenever I start iTerm or press CMD+N, it starts small in the top left corner, but instantly minimizes to my dock Is there a config that could be causing this? Where should I look ...
2
votes
3answers
9k views

How to add icons to iTerm2?

I've been looking into making my terminal more visually expressive. So far I've found , and learnt how to import themes and customize color schemes, but I was wondering how people get these cool icons ...
2
votes
1answer
721 views

How do I disable the “theme loaded” message in zsh

Im using zsh as my default shell and loving it. I have random themes enabled, and whenever I load a theme it displays a message on my terminal. How do I disable this message? Im talking about [oh-...
2
votes
1answer
2k views

OS X Terminal window disappears on launch

I just unwrapped a MacBook Pro (OSX 10.9.3). I used the Migration Assistant to bring things over from my old mbp, and most everything seems to be working except something very important: the Terminal ...
2
votes
1answer
1k views

How do I make terminal sessions resume on Lion with iterm2 and tcshrc

My understanding is that with Lion my terminal windows should restore their state. However, this does not happen for me. I wonder if this is because I use tcsh instead of bash? Is there something I ...
2
votes
1answer
193 views

Whole word search in less?

How can I do a whole word search in less? Per this post on a unix/linux forum you can use regex 'whole word' markers \<word\> but that doesn't seem to work for me on macOS 10.13.4 (17E202) in ...
2
votes
1answer
575 views

Available colors in iTerm / terminal.app

I'm trying to make my own colorscheme in Vim, but are struggling to see the available colors in iTerm. Here are my iTerm-color-settings: Here's how I can use it in Vim (for example using ctermfg=...
2
votes
1answer
795 views

ZSH terminal displaying characters and cursor in the wrong place

When my command is long and I move the cursor through it, it jumps randomly to different places and start writing in any location of the command. I'm using OS X El Capitan (10.11.6) and have ...
2
votes
1answer
914 views

iTerm2 runs my .zshrc twice

When starting a terminal in iTerm 2, my .zshrc is executed twice. Possibly has something to do with the "last login" printed at the top of terminal by iTerm? Anyone know how to fix this? Example ...
2
votes
1answer
1k views

Disable opening tabs in iTerm2 on when the application starts?

iTerm2, on startup, opens as many tabs as were opened in my previous session. How can I disable this behaviour? I don't need those empty tabs.
2
votes
4answers
2k views

Alfred Terminal / Shell Command does not work

In Alfred, if I type > ls must open iTerm2 with that command. Well, does not work for me. In Application if I select Terminal instead of iTerm2, works. If I select Application → Custom, it shows ...
2
votes
2answers
475 views

History commands render incorrect on Bash Vi mode

I'm having this werid and really annoying issue in bash vi-mode. Env: Mac 10.9.2, iTerm 2 1.0 or Terminal.app, $TERM={screen-256color|xterm-256color|xterm|vt} Repro steps: Run some long commands (...
2
votes
2answers
134 views

In iTerm2 map the left Command key to the left Control key & map Command+Tab

In iTerm2, can I map the left ⌘ Command key to the left ^ Control key and still map the system ⌘ Command ⇨Tab to still switch to all other windows? I've use three different OS's (Ubuntu, macOS and ...
2
votes
2answers
4k views

zsh (brew) and oh-my-zsh: Insecure completion-dependent directories detected (as root user)

When I run sudo -s I get those errors: [oh-my-zsh] Insecure completion-dependent directories detected: drwxr-xr-x 19 myusername MYDOMAIN\Domain Users 608 Feb 10 07:08 /Users/myusername/.oh-my-...
2
votes
1answer
831 views

How to make auto-complete work for AWS on ZSH?

I installed awscli from brew. The amazon instructions refer to a shell script, aws_zsh_completer.sh that doesn't appear to be included. I do have an /usr/local/bin/aws_completer. How do I make the ...

1 2 3
4
5
9