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

How to put "enter" or "return" when sending text in iTerm2

This is an image of where I want to put "enter" or "return" i.e. inside the "command" While I can put characters, I do not know how to "enter" so that it can run a line and another one inside command. I am having a same problem for "send text" -- I…
CottonCandy
  • 444
  • 2
  • 5
  • 15
11
votes
3 answers

Unable to open terminal in mac

I am unable to open the terminal or iTerm in my Mac OS, since my last update using brew. Not sure what I upgraded using brew :( Below is the error message I get when I open terminal. Any help is much appreciated. dyld: Library not loaded:…
karthiks
  • 7,049
  • 7
  • 47
  • 62
11
votes
1 answer

ZSH RPROMPT weird spacing?

Here is my ZSH prompt theme function git_prompt_info() { ref=$(git symbolic-ref HEAD 2> /dev/null) || return echo "$(parse_git_dirty)$ZSH_THEME_GIT_PROMPT_PREFIX$(current_branch)$ZSH_THEME_GIT_PROMPT_SUFFIX" } PROMPT='$fg[yellow]%}⚡︎…
ahmedelgabri
  • 1,228
  • 3
  • 17
  • 30
10
votes
1 answer

"Invalid or incomplete multibyte or wide character" running v4l2-ctl

Using iTerm, I'm SSHing into my raspberry pi (raspbian) to control a home security system I've setup. I need to change the focus of my camera, so I'm running v4l2-ctl -c focus_absolute=0 on my terminal. I've been doing this for weeks, and it hasn't…
niebula
  • 351
  • 1
  • 6
  • 13
10
votes
2 answers

Iterm2 colors - using the 42m or 41m options

So I've downloaded and set my iterm2 colors based on the themes from this site: http://iterm2colorschemes.com I wanted to know though, how to set the terminal to the 40m, 41m, 42m, etc. colors. What are those, and is there a way to change the…
ProtonChain
  • 121
  • 2
  • 10
10
votes
3 answers

How to automatically set iTerm2 tab title to the filename opened in vim?

I can get the vim title to display on my window by doing this: let &titlestring = expand("%:t") . " @ " . hostname() if &term == "screen" set t_ts=^[k set t_fs=^[\ endif if &term == "screen" || &term == "xterm" set title endif But the tabs…
dd.
  • 922
  • 1
  • 7
  • 17
9
votes
3 answers

iTerm2 and tmux: open new tab in working directory of current tab

When I open a new tab (via ⌘T) on a remote shell using iTerm2 and tmux, I almost always want the new tab to have the same working directory as the current tab. The best I can do is make iTerm2 open up the new tab in the same directory in which I ran…
void-pointer
  • 14,247
  • 11
  • 43
  • 61
9
votes
3 answers

iTerm2 Get Current Session Profile?

So I know there is a way to set the session profile via echo -e "\033]50;SetProfile=Foo\a" but is there a way to get the current session's profile?
gdoubleod
  • 1,268
  • 3
  • 19
  • 33
9
votes
4 answers

Vertical tmux borders dashed only when using iTerm

At my new job I'll need to use a mac, and I'm trying to use tmux with iTerm version 2. While horizontal borders appear to be displayed with the proper ACS box-drawing characters[1], the vertical borders are dashed. This is not a problem in…
Tammer Ibrahim
  • 193
  • 1
  • 5
9
votes
2 answers

Copy text to the clipboard from the OS/X terminal

I am often having to copy and paste text from the terminal. Is there a way to redirect the output of a command into a shell variable or another command that would place the output in the clipboard?
xvtk
  • 1,030
  • 2
  • 10
  • 18
8
votes
2 answers

Change iTerm2 tab title dynamically for Ruby/Rails

I am using iTerm2 and usually have many tabs open. Unfortunately all tabs show me the same title "ruby" as it is all ruby scripts. But one is rails server, the other rails console, the next is "spork", ... I would like to set the tab titles…
Sascha Konietzke
  • 1,142
  • 9
  • 14
8
votes
3 answers

generating SSH key for github: "zsh: command not found: $"

I'm trying to configure github with my macOS system. I use iTerm and zsh. When I try to generate a new ssh key according to the instructions from the…
mentol
  • 89
  • 1
  • 1
  • 4
8
votes
2 answers

Configuring iTerm and Git to use a proxy on OS X

I am successfully connecting to the internet using an application called tether for a jailbroken iphone. (I know there's better options now). My iphone is connected to my laptop's wifi "device network". I have in my OS X network settings a…
kinet
  • 1,790
  • 3
  • 20
  • 32
8
votes
2 answers

Conda environment name shows entire directory in prompt

When I run: source activate /anaconda2/envs/myEnv it shows the entire directory of this conda environment in my prompt (on iterm2) as so: (/Users/billy/anaconda2/envs/myEnv)billy@mbp:~/projects Is this a way to shorten this, so that it just shows…
Spacey
  • 2,941
  • 10
  • 47
  • 63
8
votes
1 answer

Have different zsh themes for terminal and iTerm

Here is the problem. I am currently using agnoster theme in zsh. It looks great in iTerm but looks like this in terminal. In other words it looks really ugly. So I am interested in two kinds of solutions: Have different zsh themes for terminal and…
Ankit Sultana
  • 417
  • 4
  • 14