Questions tagged [iterm]

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

Filter by
Sorted by
Tagged with
2
votes
3answers
1k views

Increase amount of text copied in iterm2

When I select text in iTerm2, the text it copies cuts off at after a certain (seemingly arbitrary) point. I did a few tests and its usually between 800 and 1500 bytes of input. Why is this, and how ...
2
votes
2answers
295 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 ...
4
votes
2answers
246 views

terminal custom commands source every time

After following this comment I added all my startup/alias commands to ~/.bashrc file and in ~/.bash_profile I added source ~/.bashrc But still my aliases are not working. I have to manually source ~/...
3
votes
1answer
719 views

update_terminal_cwd demystified please?

I am trying to find the documentation on what, exactly, the printf command is doing in update_terminal_cwd. If you didn't know already, the update_terminal_cwd function is defined (at least on Mac OS ...
4
votes
3answers
4k views

How can I get iTerm 2 to copy only what I select?

iTerm2 has a very nasty habit of making an assumption of what I want to copy and paste from the terminal. Instead of just allowing me to copy exactly what I highlight, it will expand to what it ...
1
vote
2answers
3k views

How do I search quickly in iTerm 2?

When searching in iTerm2, some kind of of fancy live highlighting thing seems to kick in even before you hit enter. When the scrollback buffer has more than a few thousand lines in it, this search ...
2
votes
1answer
2k 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 ...
7
votes
2answers
13k views

iterm + tmux isn't allowing me to scroll up with the mouse

I recently rebuilt my system and everything works except I can't scroll my (iterm2) terminal window back to look at commands and output that have scrolled off the screen. Without tmux I can scroll ...
0
votes
1answer
815 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 ...
29
votes
2answers
15k views

unknown option: mode-mouse with iterm, tmux

I've reset my computer and now tmux is complaining about my .tmux.conf having these directives: setw -g mode-mouse on set -g mouse-select-pane on set -g mouse-resize-pane on set -g mouse-select-...
3
votes
3answers
363 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 ...
2
votes
1answer
836 views

iTerm2 output broken since upgrade to El Capitan

Since I upgraded my OS X to El Capitan (10.11) the output of iTerm2 is completely messed up. See this example screenshot (iTerm2 on the left, Terminal.app on the right): Update I'm using iTerm 2.1.4 ...
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 ...
9
votes
5answers
3k views

Remove iterm from cmd+tab apps

I was using TotalTerminal to get visor like terminal on a shortcut. But TotalTerminal is abandoned so I have switched to the iTerm2. My problem is that when I use a shortcut to trigger iTerms visor ...
2
votes
0answers
36 views

Automatic Software Update reboots are almost always canceled

Apple's Automatic Software Updates require a reboot from time to time which is scheduled when the computer is not in use. In my case these reboots almost always fail because some non-Apple program ...
0
votes
1answer
249 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 ...
1
vote
1answer
54 views

Unset iTerm as the https:// handler

I made iTerm the default handler for a number of protocols that it doesn't know how to handle. How can I unset these protocols? And how can I set them to be handled by Chrome? So far I have tried ...
1
vote
0answers
474 views

How do SSH sessions work with iTerm?

When I use PuTTY on Windows, if I SSH to some server and launch a script there, closing the PuTTY window stops the script. (so I typically use screen to avoid that) When I use iTerm on Mac OS X, if I ...
4
votes
2answers
5k views

Suspended (tty output) when launching editors like vim, vi, emacs, or nano

I've been using Oh-My-ZSH for a few weeks now and it's been a great experience. Just today, though, terminal started acting strangely. When I try to run an interactive terminal editor like vim, vi, ...
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
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
2answers
106 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...
2
votes
4answers
852 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 ...
13
votes
1answer
42k views

How do I configure my Terminal app with bash and iTerm2 with zshell and oh my zsh?

The Terminal app uses bash by default. And I don't want to change it. However I want to configure iTerm2 with zshell and oh my zsh. and I don't want bash on it. The instructions I checked online, make ...
6
votes
1answer
9k views

How to enable true color mode in an OS X Terminal?

NeoVim recently added support for True Color mode in terminals that support it. I've tried both Terminal 2.5.3 (343.7) and iTerm 2.1.1, and neither one can display more than 256 colors by default. ...
1
vote
0answers
307 views

Is it possible to assign system wide hotkey to show/hide app?

I'm trying to mimic iTerm2 feature. It has a feature to show/hide iTerm2 by a hotkey (eg. option + space). When I press the hotkey, the app was shown. Is it possible to do the same to another app? I ...
0
votes
1answer
166 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 - [...
5
votes
3answers
3k views

Go2Shell stopped working with iTerm2

I am on Yosemite and have used a (seemingly older version) of Go2Shell to open Terminal windows at the current Finder location. This worked flawlessly for a long time, until something, suddenly broke ...
0
votes
1answer
720 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 ...
5
votes
1answer
2k views

How to have iTerm2 hotkey window slide up and down instead of fading

I'm using iTerm2, and my hotkey window used to slide down and then back up. A while ago, the animation changed to having it fade in and out. Is there any way to get it to go back to sliding? I prefer ...
3
votes
1answer
679 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 ...
4
votes
1answer
809 views

In iTerm, how can I change alt+delete to ignore slashes?

I set up my iTerm to work a lot like OSX does in other text fields, eg ⌘ Command+Delete = delete line backward, ⌥ Option+left arrow = "move cursor back one word" and ⌥ Option+Delete = delete word ...
1
vote
1answer
263 views

Disable command-enter keyboard shortcut in iTerm2

Currently cmd-enter in iTerm2 toggles fullscreen mode. Is there a way to disable this keyboard shortcut?
4
votes
0answers
666 views

Writing to routing socket: not in table, Why?

▶ netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 192.168.100.1 UGScI 15 0 en0 10.9.4/...
5
votes
1answer
659 views

Is there a way to force clockwise pane rotation in iTerm2 with the shortcut keys?

I've often found that when using iTerm2, I'll have like 3 or 4 panes open in one tab. And the shortcut keys for moving between them Cmd + ] and Cmd + [ are very useful, but unpredictable. The reason ...
3
votes
1answer
3k views

Can I make tmux scroll from my trackpad?

I want to set up iTerm2 to pass scroll events to tmux, so I can trivially enter (and exit) scrollback mode for whatever pane is active. Is this possible to do with iTerm2, or automation of some sort, ...
2
votes
1answer
712 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 ...
5
votes
3answers
6k views

Terminal/iTerm2 issue: reverse-i-search trims off command

I've been having this issue since 10.9. cd into a reasonably long path, e.g., cd /Volumes/Storage/backup/long/path Enter a moderately long command, e.g., curl -X GET http://localhost:8888 ctrl+R, ...
12
votes
2answers
5k views

Delete key doesn't work in vim on iTerm2

Firstly, I typed some thing on insert mode, like Hello At this stage, if I didn't exit from insert mode, delete works and can delete the whole word if I want. If I quit insert mode, and open insert ...
2
votes
1answer
984 views

How can I set up seamless navigation of vim and iterm2 splits?

I am trying to map my C-h, C-j, C-k, C-l keys to be able to navigate vim (running in iterm2) splits but if there is no vim split to move to it should figure out that I want to jump to a different ...
1
vote
2answers
291 views

Terminal: how to make tab notify somehow when new text received

I'm familiar with some Terminal's, like in Linux, that have an option to "flash" or "change color" the tab's title text, whenever new text is "displayed" on that screen (for instance, tailing a file). ...
0
votes
1answer
323 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 ...
12
votes
1answer
2k views

Mailto links on websites open iTerm instead of Mail

In both Chrome and Safari mailto: links open up iTerm instead of Mail. This seemed to have started happening right around the same time I added a shortcut through Settings > Keyboard > Shortcuts > ...
5
votes
0answers
1k views

iTerm2: Split pane - coloured title bar instead of dimming

In iTerm2 it is possible, to split panes. Thus, I have parallel multiple terminals instead (or in addition) to tabs. This is very similar to the i3 Window Manager or Terminator Terminal Emulator. ...
1
vote
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.
1
vote
1answer
263 views

Launch console application in iTerm on boot

How can I launch some command (console application) in iTerm2 on system boot? There should be only one instance of this application.
1
vote
2answers
364 views

Escape sequence in terminal or iTerm to jump to absolute column?

Is there an escape sequence which I can use to jump to an absolute column in OS X Yosemite Terminal or iTerm? In other words: echo 12345678901234567890 echo \StartAtColumn10 A10 \StartAtColumn2 B2 ...
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 ...
10
votes
2answers
5k views

How to prevent iTerm2 from creating overlaps and broken lines after pasting multiline chunks of text?

If I paste multiline chunks of text into iTerm2, I always a get mess of output. It seems limited to only some programs running interactively (such as Bash, IRB - Python / VIM work flawlessly). Using ...
4
votes
2answers
2k views

Change iTerm2 Default profile preset with “defaults write…”

I want to do this in my dotfiles script. I managed to download the preset I want using curl and open it, but I don't know how to set it in the default profile: curl -L https://raw.githubusercontent....