Questions tagged [iterm]

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

Filter by
Sorted by
Tagged with
5
votes
2answers
793 views

Colors are different when SSHing onto a Linux machine from iTerm2. How can I standardize them?

Currently, when I SSH onto a Linux machine, the ls output colors and syntax coloring in VIM are different from the colors on my local machine. The colors shown are not defined in my Profile...Colors......
0
votes
1answer
301 views

How can I “Quick Look” (result of pressing Space Bar in Finder) a filename printed by “ls” in iTerm2?

Simple question: is it possible to get the "Quick Look" of images and text files by clicking the results of ls in an iTerm2 window?
2
votes
0answers
265 views

bash in iTerm2: how to log variables like $TERM_SESSION_ID into command history

To help with recovering history across restarts etc I would like to get some key data, like $TERM_SESSION_ID, stored in my command history. This would be preserved when the command response output in ...
-1
votes
1answer
42 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 display ...
4
votes
1answer
12k views

How to save passwords for ssh in iterm2?

I am using iTerm2. Can someone let me know how can I save the password (may be via Password manager) so that I don't have to type it every time. Please don't suggest me about saving the SSH keys. I ...
2
votes
3answers
3k views

Why does F4 not work in MacOS X (Touchbar macBook, or macBook Air)?

I'm using iterm2 together with tmux and I need the function keys. Ever since I got the TouchBar Macbook Pro and upgraded to HighSierra, the F4 key became disfunctional in iTerm2 and emacs. The F4 key ...
0
votes
0answers
31 views

How to enable iTerm 2's Option-Click feature? (Not duplicated) [duplicate]

In its document (https://www.iterm2.com/documentation-one-page.html), it reads "If enabled, option-click will move the cursor to where the mouse pointer is. If you install shell integration, this will ...
1
vote
1answer
635 views

Seamless title bar and terminal background?

How can I make the title (and tab) bar of iTerm 2 exactly the same color as the terminal background so that it's impossible to tell where one starts and the other begins? How it is at the moment: ...
1
vote
1answer
84 views

iTerm2 number conversion

I right-clicked on a number, and iTerm2 shows me the number conversion in hex. But what is the 168.64 Ki number? What does Ki denote?
2
votes
2answers
507 views

Non-native full screen in Terminal.app

If you press Cmd+Enter on iTerm while having the preference "Use native fullscreen windows" turned off, it goes into fullscreen but not the standard MacOS-way. Is there a way of doing the same in ...
4
votes
2answers
790 views

Customise iTerm sudo password prompt

Recently iTerm started showing an emoji key instead of the sexy key symbol at password prompts. It now shows this: But I don't like the ugly emoji there. I want to see (this is what it looks like ...
14
votes
2answers
2k views

Is anyone else having problems with using htop on High Sierra?

Since the upgrade to High Sierra my MacBook is crashing regularly in a catastrophic way that forces me to trigger a hard reset every time. I suspect htop being the culprit, but I can't tell for sure. ...
0
votes
2answers
49 views

Iterm2 Issue: “INSERT” not showing in VIM

I have installed the latest version of iTerm2 and I have found that INSERT while inserting a file under vim is not showing on the screen. Also, I am not able to see parameters under top command.
4
votes
1answer
682 views

Search across all tabs in iTerm2

Is it possible somehow to search across all open tabs/sessions in iTerm2? I'd like to do something like a regular search (Cmd+F), searching the scrollback buffer, but across everything I have open ...
0
votes
1answer
201 views

Hotkeys don't work in zsh when $TERM is set to screen-256color

As per various other discussions I bound opt+<- to 0x1b 0x62and opt+-> to 0x1b 0x66. This works great in zsh, but not in tmux. In tmux opt+<- does jump backwords per word, but also seems to do ...
2
votes
0answers
392 views

Display single double width chars in iterm3

I have a battery-emoji in my prompt when the laptop is on battery power. Because this is a double width char and iterm has issues with it, my prompt is broken. One char after the prompt sign is ...
1
vote
1answer
408 views

iTerm2: Difference between preloaded Light and Dark themes

I can't seem to spot the difference between the preloaded two themes: Light and Dark. Background: I was looking for a theme that "inverts" the default color scheme, i.e. dark text and light ...
4
votes
2answers
2k views

How can I make iTerm2 *cd* into a directory by clicking on *ls* results?

Would it be possible to make some sort of remap where command-clicking or highlighting some text in the terminal triggers iTerm2 to attempt to cd <text>? Would make life somewhat easier when ...
0
votes
1answer
108 views

Why isn't my system producing an audible system beep in iTerm2 or Terminal?

I want to be able to hear the system beep. Normally, this can be done by running any of the following commands in OSX: echo -e "\a" printf "\a" tput bel Running these commands in the standard ...
1
vote
0answers
610 views

ANSI Colours not showing in iTerm2

I've tried following answers in this link but I still can't get the ANSI colours in custom themes to show for me in iTerm. Did anyone find any other fixes? https://superuser.com/questions/399594/...
3
votes
1answer
242 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 ...
1
vote
1answer
612 views

Edit commands in iTerm2 with standard OS text keyboard/mouse controls

I'm a heavy terminal user, but I'd like to be edit commands like I would in any other mac app, e.g.: select a portion of a command with the mouse and press backspace to delete it use shift+up to ...
1
vote
1answer
596 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 ...
3
votes
2answers
599 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 ...
2
votes
1answer
408 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=...
3
votes
2answers
2k views

How do I open two tabs in a split pane in iTerm?

I have a split pane iTerm window I would like to have two tabs in the right "pane", but cannot figure out how to do this. I did it yesterday, for the first time ever and loved it, but can't seem to ...
6
votes
2answers
11k views

How do I write a script that opens an iTerm2 window and runs a command?

What I'm doing I'm using iTerm2 Build 3.0.15 and writing a script that opens a new window and prints "hello world" to the screen. Really, I'm interested in being to run any command but using echo "...
3
votes
1answer
182 views

Disable Search / Dictionary Popup Window in iTerm2

The newer versions of iTerm2 have a "feature" in which a Search dialog is displayed instead of doing a Start selection action. My intention had been to select the 14 and the following paragraph .. ...
1
vote
3answers
2k views

How to Purge iTerm2

My iTerm2 had developed some bug where it no longer saved new profiles. After restarting the app, the new profile would be gone. Therefore I tried reinstalling the app. I deleted it from the ...
0
votes
2answers
370 views

Run zsh alias via automator?

I am using zsh with oh-my-zsh in iTerm on macOS. There are some aliases defined in my .zshrc I use often, like this: deploy(){ cd ~/Path/To/My/Project; build ...; rsync ...; } To execute this, I ...
4
votes
2answers
1k views

Changing the title of an ssh connection without modifying remote machines

Is it possible to set the title of an ssh connection by just changing something on my local machine? I mean I want ubuntu@ip-10-50-10-152 in the following picture to be changed to a name I like. ...
8
votes
2answers
1k views

Prevent iTerm2 from opening new terminal from dock

I just switched from TotalTerminal to iTerm2, and the feature I used the most was the visor. When I used my shortcut key (option + `), it'd drop a terminal from the top of the screen that i could tuck ...
1
vote
1answer
296 views

Entering Unicode Characters with `ssh … tmux -CC a -t mySession` on iTerm2

When I ssh into the server and then open tmux, I'm able to enter in Unicode characters. It seems that the problem is specifically with sshing directly with tmux -CC a -t mySession. Edit: I'm trying ...
2
votes
1answer
630 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
2answers
1k 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: “...
3
votes
1answer
1k 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 ...
1
vote
1answer
3k views

changing user prompt terminal

I am new to using macs. I was using the bash shell, but recently tried switching to using iTerm2 and zsh. Originally, it looked the way I wanted, but something changed and reformatted my shell. ...
23
votes
3answers
32k views

How do I get different colors for directories, etc. in iTerm2?

I have a new MacBookPro, and I installed the latest release of iTerm2. Even after I imported various color schemes, I notice that they just change the color of the text and background only. What I ...
2
votes
0answers
209 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 ...
1
vote
1answer
140 views

Find images of a specific size and move them to trash from terminal

Im sorting images in a kinda large image library, and thumbnails from old iPhoto-library is still in there. And I'm in need of removing them to improve speed of sorting the images. I have found this ...
1
vote
1answer
1k 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
0answers
74 views

Character Mode settings in macOSTerminal?

I have an old-school text-based Citadel BBS running in DOSBox on a Raspberry Pi Zero, accessible via telnet at anthropocene.sytes.net:13000. It runs smoothly for callers using PuTTY (with line editing ...
0
votes
1answer
151 views

How to automatically disable trackpad when I am coding with vim in iTerm2?

As the touchpad is bigger now, when I am coding in vim, my thumbs occasionally touch the trackpad and thus move the cursor to somewhere else, which is extremely annoying. How to disable trackpad ...
1
vote
0answers
306 views

Left Alt key does not work properly on QWERTZ keyboard and iTerm2

I am using the QWERTZ keyboard and I can't get the "@" (commercial at symbol) in iTerm2. As long as I'm using the left Alt key I'm only getting a question mark. Using the same setup at my work ...
2
votes
0answers
100 views

iTerm white bar showing over tabs

Since upgrading to Sierra on my new 2017 MBP i've got a very annoying bug that I can't seem to find a solution for. I've got a white bar showing over my iTerm window every time iTerm is the front-...
4
votes
1answer
531 views

iTerm2 - Disable same commands across tabs

Terminal app in Sierra keeps crashing so I switched to iTerm. But iTerm tabs behave weirdly. Whatever I do in one tab automatically replicates across all open tabs! Am I missing some setting to turn ...
3
votes
0answers
233 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 ...
2
votes
1answer
551 views

Is there a Mac FTP client that will open SSH at current location?

I often find myself looking at files in an FTP client and I need to do something from the shell. My workflow is to open terminal/iTerm, SSH in to the same server, and navigate to where I need in the ...
1
vote
2answers
90 views

Assign command up (⌘↑) to go to parent folder in iTerm

The ⌘+↑ key takes you to the parent folder in Finder. How can I assign this key to do the same in iTerm - basically an alias for cd ..?
2
votes
1answer
602 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 ...