Questions tagged [iterm]

iTerm is an enhanced terminal emulator for OS X and macOS

iTerm2 is a replacement for Terminal and the successor to iTerm. It works on Macs with OS 10.5 (Leopard) or newer. Its focus is on performance, internationalization, and supporting innovative features that make your life better.

332 questions
1
vote
1 answer

Different color in Vim while using screen

I'm currently using color scheme from http://vimcolors.com/535/jay/dark in iTerm on Mac OSX. However, I found the color became different when I use Vim in screen, what setting should I look into here? Without screen: With screen: > echo…
Heron Yang
  • 336
  • 2
  • 16
1
vote
1 answer

vim not showing me if I have modified the file

Suppose I open multiple tabs in vim, using tabnew. Now, if I modifiy a file in any of the tabs, vim shows me that I have modified the file by placing a + in front of the tab's title, which happens to be the file's name. However, when I am editing a…
user2048925
  • 63
  • 1
  • 5
1
vote
2 answers

Running shell commands in ITerm2 without tab closing after completion

Probably a minor syntax issue that I'm getting wrong, but can't find the solution in the ITerm2 documentation. I'd like to create an applescript that opens an ITerm window with three tabs, each running various shell commands (ls, cd, echo, etc.)…
Glen Mazza
  • 748
  • 1
  • 6
  • 27
1
vote
1 answer

CMD+Shift+A alternative in iTerm

In Terminal app in macOS Sierra user can select the output with CMD+Shift+A. E.g. do a ls command, then do CMD+Shift+A shortcut. The output of the ls command will be selected. How to do the same in iTerm?
Grinch
  • 167
  • 1
  • 3
  • 11
1
vote
1 answer

Applescript: iTerm to split pane from the window the script was called

I have the following script with attempts to split the window vertically, and tail a log file in the new pane. #!/bin/bash COMMAND="tail -f log_file" # Do something important. sleep 4 # Split the window, and tail logs. osascript <<-EOF tell…
John Bupit
  • 10,406
  • 8
  • 39
  • 75
1
vote
1 answer

How can I retrieve the contents of an iTerm session with Applescript?

I am working on an Applescript to make logging into 2-factor authentication domains a little easier. Long story short, instead of using delays and sending text, I'd like to poll the contents of the current session and enter…
cgm123
  • 170
  • 1
  • 9
1
vote
2 answers

How to open .rb file by RubyMine from error message in iTerm2

I'm using iTerm2 and RubyMine in Mavericks. In iTerm I can open a file from error message by clicking file name with Command key. But somehow the .rb file is opend SublimeText. I changed association of the file to RubyMine in Finder. (Select a .rb…
ironsand
  • 14,329
  • 17
  • 83
  • 176
1
vote
0 answers

How do I reset Iterm to default?

I accidentally installed a zshrc script from this link https://gist.github.com/kevin-smets/8568070. But it completely ruined my current bash_profile and bashrc. I think it's using the zsh login shell on top of my terminal and iTerm. And now ,I have…
Shamveel Ahammed
  • 266
  • 2
  • 3
  • 12
1
vote
1 answer

How to remap escape sequences in ITerm2 (Mac OSX)?

I am using ITerm2 on Mac OSX, and I am trying to get the "skip words" hotkey (alt left, alt right) to work. On ITerm2, this is done by mapping ⌥ ← to b, and ⌥ → to f (found here:…
cozos
  • 787
  • 10
  • 19
1
vote
1 answer

How to reinitialize AppleFontSmoothing for your terminal in osx?

I wanted to change the font on iterm which was blurred, so I use this defaults -currentHost write -globalDomain AppleFontSmoothing -int 3 which make the apple-native terminal very bad (and blurred), so now I want to go back to my terminal,…
radjiv
  • 99
  • 2
  • 2
  • 11
1
vote
1 answer

Iterm2: hide hostname and git branch

I use iterm2 and oh-my-zsh. How can i hide hostname and git branch name?
panda0
  • 192
  • 1
  • 18
1
vote
2 answers

OSX: How can I programatically tell if I'm running in Terminal or iTerm?

I have a command line application running on OSX that would like to create several tabs in the current window using AppleScript. How can I tell if my program is running in Terminal, iTerm, or another terminal program?
Mark Harrison
  • 297,451
  • 125
  • 333
  • 465
1
vote
0 answers

iterm2 jump mark in screen or tmux

I found set mark (cmd-shift-m) and jump to mark (cmd-shift-j) don't work in screen or tmux, when multiple sessions are opened. If there is no status bar and you set a mark m1 in session1, and then mark m2 in session2, you will always jump to m2 even…
user2847598
  • 1,247
  • 1
  • 14
  • 25
1
vote
1 answer

Iterm2 Color Configuration

Can anyone assist me how to achieve this kind of color scheme? The color of the directory, commands, etc are all different which I really like. Please assist. I'm using a Mac OS X El Capitan - iTerm.
leo
  • 1,565
  • 3
  • 11
  • 10
1
vote
1 answer

iTerm2: Differentiate user input from computer output for better readability

When using iTerm, it gets confusing to understand what happened in previous commands, cause user input has the same formatting as the info output. Is it possible to do something as below? This is how it is today: This is a simple solution that…
juanpazos
  • 129
  • 1
  • 2
  • 10