Questions tagged [iterm]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
186 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
220 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
876 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
87 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
832 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 ...
0
votes
1answer
1k views

Any reason not to change the root shell to bash?

The default shell for root (at least on Yosemite) is /bin/sh. Would there be any problem to changing it to bash (or better yet zsh)? As far as a I know bash at least is backward compatible. I need ...
0
votes
1answer
2k views

iTerm2 preferences keep resetting after reboot

My changes to the preferences in iTerm2 are always reset after a reboot. They will survive a logout, but after a reboot everything is back to the previous state. I checked ~/Library/Preferences/com....
0
votes
1answer
728 views

Terminal stuck at error won't accept any commands.

I was trying to install CLI package from github but I messed up during the process and ended up getting this error. It is persistent and won't go away. Terminal wont accept any commands like mkdir, ls,...
0
votes
1answer
456 views

iTerm2 cannot be opened even after SMC and PRAM resets

I got a gray screen due to "A kext releasing a(n) AppleHDAEngineOutput has corrupted the registry." Once the computer restarted, I cannot open iTerm2 anymore. A 1-lined terminal shows up without the ...
0
votes
1answer
112 views

Odd bug in iTerm — Why is my name wrong?

I opened up iterm and it says "jessica-s-phone" I'm not sure what the term for that is. I checked my profile and it isn't there.
0
votes
1answer
399 views

\u2018 includes a whitespace character under Mac OS X

Regardless of whether I use the GNU version of printf--and regardless of whether I'm using the \u2018 escape sequence in printf or in nodejs's console.log--the unicode character ‘ is always ...
0
votes
1answer
469 views

Launch script after command finishes

I find myself running some long scripts/commands and I don't want to wait looking at it until it finishes. On the other hand, I would like to know right away when it ends. I know you can do the trick ...
0
votes
2answers
4k views

how to config color when i use iterm2 ssh linux server

I use Mac and use iterm2 ssh login linux Server . but when exec ls the terminal is Black and White how to config then like mac colors
0
votes
1answer
53 views

Add shortcut for iTerm on Mountain Lion

I am trying to add shortcut for opening iTerm when I press F1. I added an application shortcut with this key but it does not work. I want to fire iTerm instantly irrespective of what application is ...
0
votes
2answers
1k views

How can I connect Linux server with Applescript using iTerm or Terminal?

I want to connect and run bash script on Linux server automatically by using Applescript and iTerm or Terminal on OS X. How can I connect Linux server with Applescript use iTerm or Terminal?
0
votes
0answers
21 views

iTerm2 remap keys to Ctrl-Shift-{Letter}

I'm trying to remap cmd-shift-u to ctrl-shift-u in iTerm2. Following ExistMe's answer here: Remapping keys in iterm2, I have tried these two things: Send Hex Code 0x60103 0x15 (found using the Key ...
0
votes
0answers
12 views

Associate automation applescript with hotkey or shortcut or launcher icon [duplicate]

I came across a very handy approach based on applescript to automate some repetitive tasks on iterm. Here is the example script: #!/usr/bin/osascript tell application "iTerm2" tell current ...
0
votes
0answers
58 views

Running but not sourcing `~/.bash_profile` on file-write

I have an odd but no-longer-reproducible issue with iTerm2 and Bash. My default iTerm2 profile uses /usr/local/bin/bash (Bash 5 installed with Brew) with no arguments. I was trying to determine when ...
0
votes
0answers
14 views

iTerm2 - How to move current word to the left?

For instance, in iTerm2, I enter mkdir ./a/b -p and then realize that the correct order should be mkdir -p ./a/b while my cursor is at the last character of the the whole string(at p). So how can I ...
0
votes
0answers
44 views

how can my iterm2 not to paste into one line when I copy multiple lines from other place?

I copy multiple lines from sublime editor like following: aaa bbb ccc however, when I paste then into item2, it become: but I want it keep it as mutiple lines in iterm2, anyone knows how to fix it?
0
votes
0answers
16 views

How to use other key combination to replace ⌘W? [duplicate]

I am using a small mechanical keyboard on which if I press a special function key and key 'W', it means 'up' I use iTerm2 as my console app. From time to time I use 'up' to recall past commands. ...
0
votes
0answers
69 views

tmux + iTerm2 - no permission to edit crontab

I am running macOS 10.14.5, iTerm2 build 3.2.8, tmux 2.9a (tmux -V). I've granted both iTerm2.app and Terminal.app (file permission: .r-xr-xr-x) Full Disk Access (FDP) in Sys prefs > Security and ...
0
votes
0answers
20 views

Open last link on iterm2 console

When using git, I often follow git push origin with CMD-Clicking the link displayed to create a pull request. Is there a way to do this with a keyboard shortcut instead?
0
votes
0answers
80 views

Does there exist a means to use Ranger in iTerm2 and Preview Images with X11 forwarding enabled on an SSH session?

So I am using the ranger terminal application, which is a vi style file browser. I've followed this tutorial to achieve image preview compatibility with the iTerm application. This works very well for ...
0
votes
0answers
60 views

Bash prompt customization not working

I have installed Git Aware Prompt. I have followed the instructions in the project readme file and customised my prompt in ~./bash_profile by adding the following lines: export GITAWAREPROMPT=~/.bash/...
0
votes
0answers
27 views

Simple AppleScript exporting to Application does not work

I have created a simple script that takes some parameters as input, opens a new iTerm2 window and executes them. The script is fairly simple: on run argv set argList to {} repeat with arg ...
0
votes
1answer
716 views

How to reset iTerm2 Window/Tab Title when disconnecting from remote host? [duplicate]

I have my bash_profile on my Mac and the remote computers I connect to setup to automatically put the hostname in the window's (or tab's) title area. A bash shell on my local machine A remote host ...
0
votes
0answers
138 views

Terminal and iTerm appear to be partially opening in zsh

I recently installed Julia on my iMac running High Sierra. Julia seems to want to run in the Z-shell whereas I normally use bash. I haven't run Julia today but my Term2 windows are screwed up since ...
0
votes
0answers
44 views

Shift+tab no longer works on terminal

I have a 2017 MacBook Pro Retina 13", running the latest version of macOS. I use Iterm + zhsrc as terminal configuration but a few weeks ago my shortcut Alt + Tab stopped working. If I'm executing ...
0
votes
0answers
150 views

iTerm is not using any config files when invoked for ssh

What I want to do: open an iTerm window/tab, and ssh to some remote system. On that remote system, I need the following exports to be "effective": export LANG="C" export LC_ALL="C" When I open that ...
0
votes
0answers
33 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 ...
0
votes
1answer
618 views

How do I get Terminal.app pasting behavior in iTerm 2?

I often paste stuff into my terminal from websites, sometimes with newlines in wrong places, sometimes with newlines where you would expect them. However, iTerm seems to ignore any paste that contains ...
0
votes
1answer
168 views

Restore scrollbuffer and tabs in iTerm as Terminal.app does

I love the restore functionailty of the Terminal.app when the app crashes or I need to restart my computer, Terminal.app will show me the recent scrollbuffer for the tabs I have open with a - [...
0
votes
1answer
331 views

todotxt color not working on iTerm2

Is anyone here using todotxt and iterm2? I'm having a weird issue. When using default terminal app in OSX, my todotxt color is working just fine. But when I switch to iterm2, the color is not ...
0
votes
1answer
201 views

Paging Up/Down in irssi Running In The iTerm2 Terminal Emulator

I can't figure out how to actually page up and down in irssi's history to see previous conversations. The majority of posts claimed that first hitting Ctl+A, then using Shft+fn+[up/down], which didn't ...
0
votes
1answer
6k views

How to get “Subl” to work in my terminal?

Whenever I enter "subl" in the command line of iTerm it tells me that the command is not found. I have seen many message boards pertaining to this and nothing seems to work. I have tried entering "ln ...
0
votes
1answer
2k views

Failed to launch iTerm2 [duplicate]

Possible Duplicate: iTerm2 terminals close immediately with “argpath=login error=No such file or directory” iTerm2 is immediately closed after launch with the error: "argpath=login ...
0
votes
1answer
45 views

Enable unlimited scrollback with iTerm2

I tried to check Unlimited scrollback option in the iTerm2 settings, however, it doesn't seems to be applied for longer outputs (say couple of thousands lines). The output gets truncated so I can ...
0
votes
2answers
1k views

How to change the color and format of the static host/path/user string in the Terminal or iTerm?

Example: cookie:~ j$ date Sun Aug 5 02:14:29 CEST 2012 cookie:~ j$ Just as it's pasted here, all three lines are of the same color. I would like to have "cookie:~ j$" or at least part of the string ...
-1
votes
1answer
46 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 ...