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
8
votes
1 answer

'xterm-new': unknown terminal type

Replicating the error: I am using iTerm2 on Macbook (OS X Yosemite) I ssh into a remote instance and tried to run the clear command and this error is shown: 'xterm-new': unknown terminal type. Not only for the clear command but the same error is…
Pranjal Mittal
  • 10,772
  • 18
  • 74
  • 99
8
votes
3 answers

How to fix .bash_profile when Terminal won't work

I was trying to customize my prompt in Terminal. To do this, I tried to edit .bash_profile using vim, but ended up with a .bash_profile.swp file. Following some posts I found online, I used the :recover command in vim, which created a new…
JChlip
  • 121
  • 1
  • 2
  • 3
7
votes
1 answer

iTerm2 get previous DIFFERENT command using up and down arrow keys

I found it irritating that if you run one command 5 times you have to press the arrow key 6 times to get the previous command. Is it some way to change this behavior? iTerm2 Build 1.0.0.20111020
bandola
  • 267
  • 1
  • 3
  • 13
7
votes
4 answers

Change colors on executable files in the terminal (or iTerm2)

How do I change it, so executable files don't have another color, compared to other files? I'm on macOS Sierra (10.12.6). It's the same, both in the regular Terminal: ... or in iTerm2: It's frustating to look at. If i write chmod -x [FILENAME]…
Zeth
  • 2,273
  • 4
  • 43
  • 91
6
votes
1 answer

Setting colors in Terminal leads to strange character line limit

I found an annoying bug while coloring the prompt of my Terminal. If I set my prompt to a colored one, such as export PS1='\e[1;34m[\e[0;31m\D{%Hh%M} \e[0;32m\u\e[0m@\e[0;35m\h\e[0m:\e[0;36m\w\e[1;34m]\e[0m $ ' then it starts to break when I get…
brandizzi
  • 26,083
  • 8
  • 103
  • 158
6
votes
0 answers

iTerm2 Python API: how to run a command AND capture result

It's quite easy to send a command using the API: #!/usr/bin/env python3 import tkinter as tk import iterm2 # To install, update, or remove packages from PyPI, use Scripts > Manage > Manage Dependencies... async def main(connection): # Your…
Jarek
  • 782
  • 5
  • 16
6
votes
1 answer

Terminal stalling on every command due to Xcodebuild

I just updated Xcode to 11.4 and suddenly my terminal (iTerm 3.3.9) is now very slow. Typing a command works fine, but upon pressing enter I often wait 3-4 seconds to perform a simple task (cd, git add, etc). When I look at the status bar I notice…
6
votes
2 answers

iterm vs. zsh features

I'm confused on why I would need both iterm and zsh because from my understanding both just gives you coloring themes and shortcuts like gco instead of git checkout or is iterm more known for the former and zsh for the latter?
stackjlei
  • 9,485
  • 18
  • 65
  • 113
6
votes
1 answer

How to keymap reverse-search (Ctrl+R) in iTerm to a different key combination

I am trying to map the reverse-search-history (Ctrl+R) command to a different command combination in iTerm but not sure how? Any help would be appreciated.
user1686342
  • 1,265
  • 1
  • 18
  • 24
6
votes
2 answers

new tab in iTerm2

Im using Iterm2 version Build 3.0.4 I want to create alias to open new tab from the command line (in bash) I tried this code: function tab () { osascript &>/dev/null <
Dkova
  • 1,087
  • 4
  • 16
  • 28
6
votes
1 answer

zsh: permission denied: bin/rake

I have recently bought a new Macbook and have installed Rails, Ruby, Git, Homebrew, and Postgres successfully. I can open my app in atom but when I try to run a migration or drop the database, ZSH gives me a permission denied error. Is there…
Leah Huyghe
  • 337
  • 1
  • 4
  • 15
6
votes
1 answer

mouse selection lost by status update in byobu/tmux

I'm on Mac 10.7.5 iTerm2, ssh'ing into an Ubuntu machine running byobu 5.12 with tmux 1.7. The problem is that if I try to select text from the terminal with a mouse, it's gets cleared every time the time gets updated on the bottom right hand side…
purple51
  • 319
  • 1
  • 8
6
votes
1 answer

vim + iterm: how to use mouse for everything EXCEPT selection?

Ok, have a very specific setup question. I'm using Mac OS X, iTerm, and vim. I really like using my mouse for clicking tabs in normal mode, scrolling in normal mode etc. (e.g. I already have the mouse working within iTerm/vim). However, I dislike…
Nate Murray
  • 3,841
  • 5
  • 32
  • 33
5
votes
1 answer

How to make iTerm autocomplete a partial command when pressing the 'up' arrow key?

I currently have iTerm version 3.4.12. In my old work computer I had a different version that would autocomplete a partial command based on the previous commands I had typed when pressing the up key, for example if at some point I ran: cd…
IvanHid
  • 669
  • 7
  • 25
5
votes
0 answers

How to use Neovim as External editor for Godot (Godot executable permissions)

I am trying to configure Godot to use launch Neovim in iTerm2 when I double click on a file containing code in the editor, however, a terminal window pops up instead with the following error: /Users/myusername/.../Scripts/Player.gd; exit zsh:…