We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [iterm]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
1k views

How to use iTerm along with the default bash terminal?

I want to use iTerm with my default bash terminal because there is a lot of customization that i have done to my .bash_profile and I don't want to lose it or perform all the hard work again.
0
votes
1answer
256 views

How does iterm2 work?

I am curious how does iterm2 work? I mean it would be a gargantuan task to re-implement all the unix commands and I guess it somehow uses the built-in terminal under the covers to run the actual ...
0
votes
2answers
111 views

How to disable growl on iterm2 with mac os 10.8.x?

How to disable growl on iterm2 with mac os 10.8.x ? I don't want notifications everytime a tmux session becomes idle...
0
votes
1answer
734 views

How to add watermark to all video files in a folder? (Mac, mencoder, terminal)

Is there a way to add watermark to all (mp4) video files in a folder. I have like 1000 videos in one folder and It'll take a long time to change one by one manually - so, maybe, there is some kind of ...
0
votes
2answers
6k views

Customizing iTerm. Creating a display profile with Pastel color

I was trying to follow the instructions given on the page http://kpumuk.info/mac-os-x/customizing-iterm-creating-a-display-profile-with-pastel-colors/ After running the final command when I reopen ...
0
votes
1answer
185 views

Terminal broken.

I am having an issue and I have no clue what I should be searching to fix it. Not experienced enough. I have zsh and probably other things I installed many years ago while making the terminal more my ...
0
votes
1answer
2k views

Bash history not initially remembered with iterm2

I've got an annoying problem with iterm2 not remembering my history when I close out a terminal window. I'm not sure if it might be my .bash_profile config or what. Here is what is happening: 1) ...
0
votes
1answer
827 views

iTerm opens instead of default web browser when links clicked in Apple Mail

Clicking on links in Apple Mail (http or https, doesn't matter), opens a new iTerm 2 terminal session instead of my default browser. I can't figure it out. Weirdly, iTerm.app shows up as a potential ...
0
votes
1answer
2k views

Why iterm2 keyboard shortcut settings don't work on window launched using F12

I've followed the instructions here on how to make alt→ and alt← skip words backward and forward.. this works just fine on the original window displayed by iterm2.. however when i press F12 and the ...
0
votes
1answer
571 views

Weird null characters ^@ output on iTerm 2 / zsh when a command is running

When I m using iTerm 2 (with zsh), and a command is running at the prompt, every minute or so ^@ (NULL character) got displayed on the terminal. Below is an example, using socat, but other commands ...
0
votes
1answer
1k views

I accidentally removed all files with “rm -rf *”. How can I recover?

I accidentially deleted every single file in my home folder of my Mac using rm -rf * in iTerms. I intended just to clear one folder, but clearly did not know what I was doing. Yes feel free to laugh, ...
0
votes
1answer
967 views

New mac - installed tmux but can't use mouse in for pane switching

I have the required setw / setg setting for mouse in my .tmux.conf but they aren't working. I've done tmux source-file .tmux.conf I can use tmux and split windows with my remapped keys and other ...
0
votes
1answer
1k views

How can I launch .sh scripts from the finder in iTerm2 instead of Terminal?

I have set 'always open with' to : 'Iterm2', for .sh files in osX. Although a double click on a shell script now opens a new Iterm window, the script does not actually run, I just the get the empty ...
0
votes
2answers
889 views

Visually distinguish different lines (for long wrapped lines) in iTerm2 / Terminal

I'm using an application that outputs very long lines. It's fine - it means things aren't cut off at 80 characters - but the default Terminal and iTerm2 config makes it hard to distinguish between: ...
0
votes
1answer
457 views

How do I view .nfo files in Terminal?

I'm trying to open an .nfo file correctly with the mac terminal (eventually with iTerm2) . I've tried it already with vim: vim file.nfo :set encoding=cp437 But it has not helped. Maybe there are ...
0
votes
1answer
220 views

Why does Terminal swallow Ctrl+up/down keystrokes?

In Terminal.app on Snow Leopard, the key combinations Ctrl+↑ and Ctrl+↓ don't get passed through correctly. Instead Terminal.app receives a single ↑ or ↓ key stroke. I have verified this by running ...
0
votes
1answer
38 views

Superimposed “W” on terminal screen

I don't know when it appeared, but I have a weird superimposed red "W" in iTerm2. What is it, and how do I get rid of it? I'm running iTerm2 v 3.6.6 and macOS 10.15.
0
votes
1answer
50 views

Iterm2 BrokenPipe Failed to exec /usr/bin:/bin:/usr/sbin:/sbin: No such file or directory PATH=/usr/bin:/bin:/usr/sbin:/sbin

Backstory: I've been given a lender computer from the school I'm attending and I was attempting to npm install global packages for my react-native project. I was able to install the packages, but my ...
0
votes
1answer
53 views

How to select a tab in iTerm2 via AppleScript

I am quite a startet with iTerm2 and AppleScript, and can not find a way to let one of my 3 opened tabs get selected via an AppleScript. I have no problem to create a new tab and to select it, but I ...
0
votes
1answer
42 views

Give assistive access to a single applescript

I have this script: #!/usr/bin/env osascript activate application "SystemUIServer" tell application "System Events" tell process "SystemUIServer" to keystroke "q" using {command down, control down} ...
0
votes
1answer
26 views

What do these marks indicate exactly on these tray icons when I run Python from a terminal?

I ran an Anaconda Python installation from iTerm using python -i myscript.py. It made a plot using Matplotlib. After I closed the plot, the two icons remain. Each has a dot under it, and a little ...
0
votes
1answer
83 views

How can I limit iTerm2 text selection to a single tmux pane?

I have a late 2013 MacBook Pro running iTerm2. I don't have tmux installed on it, but I use tmux on the remote Linux host I frequently connect to via ssh. When tmux is displaying a vertical split and ...
0
votes
1answer
41 views

Report *only* mouse wheel events in iTerm2

In Preferences -> Profiles -> Terminal, my iTerm2 (3.2.7beta4) has the following options: I would like iTerm2 to send mouse wheel events to the application (so that I can e.g. scroll in tmux), but ...
0
votes
1answer
137 views

Can set iTerm2 tab colors from the command line?

I'd like to automatically set a terminal tab's color when certain things happen, like when I run teamocil, ssh or other programs. I know how to watch the .bash_history file. But I don't know how ...
0
votes
1answer
554 views

_complete:96: bad math expression: operand expected at end of string in iTerm and Terminal on Tab kypresses

Mac command line say "bad math expression: operand expected at end of string" Previously asks the question however the solution of restarting my computer has not worked.. I was hoping someone might ...
0
votes
1answer
227 views

curl not downloading pear.phar on Mac Mojave

i do try to curl -O https://pear.php.net/go-pear.phar but all i got is a log raising the time spent: % Total % Received % Xferd Average Speed Time Time Time Current ...
0
votes
1answer
1k views

iTerm2 how to get autocomplete through tab key

In my terminal I can press tab key to autocomplete dir names etc but I can't do this in iTerm2. Is there any way to do that in iterm2? I'm using bash. I know cmd ; shows autocomplete but I'd like to ...
0
votes
1answer
43 views

How to render a specific character as transparent in terminal

I'm looking for a way of rendering a single character / escape sequence as transparent in iTerm2 or, if there is one, any other terminal emulator. With transparent I mean that it should show the ...
0
votes
1answer
148 views

Window opens but immediately disappears. This happens with multiple apps

Recently, I've run into problems with Notes, Mail, Messages, and iTerm. All of these are in my dock along with several other apps. Normally if I click on one of these it opens and works fine. ...
0
votes
1answer
565 views

Windows won't open from Mac Dock

I use iTerm a lot and keep the app in the dock. When I first start iTerm, it brings up a terminal window. If I minimize its window I expect to be able to click on iTerm in dock to bring the iTerm ...
0
votes
2answers
277 views

iTerm2: Notice about PHP7.1

Every time I open a new iTerm2 window is shown the following warning: Warning: Use php@7.1 instead of deprecated homebrew/php/php71 Anyone can help me out please? I've uninstalled PHP, and ...
0
votes
1answer
385 views

How to keep terminal window open in AppleScript after end tell?

I have this osascript with a command tell application "iTerm2" create window with default profile command "uwm" end tell Now the iTerm window closes at end tell but I want to keep iTerm window ...
0
votes
1answer
566 views

iTerm2 shell integration isn't working

I am using iTerm2 3.0.15 beta on Sierra. I have had shell integration installed since many months ago. At some point, shell integration stopped working. (I'm not very observant; I just noticed it at ...
0
votes
1answer
385 views

Shortcut to move one character iterm2

How to move the cursor one character forward in iterm2? I can move one character backward with ^b. I tried ^f but instead of moving one character forward, it scroll through command history from the ...
0
votes
1answer
381 views

How can I make sudo in 2 tabs ask for the password only once?

I have a script to automate starting a few servers on the terminal. These are server processes of the software I am developing. They can be recompiled and changed multiple times a day. The binaries ...
0
votes
1answer
320 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?
0
votes
2answers
51 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.
0
votes
1answer
214 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 ...
0
votes
1answer
113 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 ...
0
votes
2answers
408 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 ...
0
votes
1answer
158 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 ...
0
votes
1answer
366 views

sourcing .bash_profile from .bashrc breaks macvim shell

I read Why doesn't .bashrc run automatically? about sourcing .bash_profile from .bashrc and adjusted my config to match this. I am using iTerm2 as my terminal. Unfortunately, when I do this, my ...
0
votes
1answer
483 views

Qt Creator and iTerm2

Qt Creator opens the UGLY Terminal app for running/debugging programs. Using this script: #! /bin/bash # ugly escaping: for apple script \ and " need to be escaped, whereas %q takes care of all bash ...
0
votes
1answer
452 views

Mapping ⌘→ to ^Q→ in iTerm2 doesn't work

I'm trying to make iTerm2 and tmux play nicer with eachother (without using the builtin tmux functions; I'd like my windows and panes managed by myself). Therefore, I want to map ⌘+→ to a key ...
0
votes
1answer
25 views

Pressing a wrong key sheds blue light on whole screen in iTerm

Pressing a key that doesn't do anything, sheds a blue light on the screen for a moment, and it's quite annoying. For example, in iTerm, since pressing Down Arrow Key doesn't do anything, so it sheds ...
0
votes
1answer
185 views

How to prevent iTerm2's Hotkey Window from changing desktop?

I've configured Hotkey Window to slide down from top when global hotkey is pressed (like console). But when I do that when maximized window is active it switches to a desktop. Is there a way to ...
0
votes
1answer
216 views

Interaction between profiles of Terminal.app and environment variables

I wonder if and how it is possible to set shell environment variables based on the Terminal.app profile. More specifically, I would like to use a coloured prompt in Terminal.app or iTerm2.app in Mac ...
0
votes
1answer
866 views

iterm2 tab and window titles remove current process information

I've found tons of places that describe how to get the window title and tab titles to reflect the current directory (relative to my home directory). Here is what is in my .zshrc: precmd() { # sets ...
0
votes
1answer
84 views

Ignore global shortcuts when using iTerm

I'm using tmux in iTerm2. To resize the tmux panels, I think I'm supposed to press Ctrl+b+Arrows. For example, if I press Ctrl+b+Down, it shows all the windows in the current app, probably because it ...
0
votes
1answer
828 views

How to get iTerm to properly send the CTRL-. sequence?

Emacs uses a lot of C-. and similar keyboard sequences. iTerm doesn't send the key sequence C-. itself, but I've found that I can map C-. into an escape sequence or hex code or text in iTerm's ...