Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [iterm]

The tag has no usage guidance.

1
vote
1answer
29 views

I'm using iTerm to run the command line on my mac. Its in a mode I don't recognize

I like to use iterm on my mac. Recently when I open iTerm or a new tab, it's in a mode I don't recognize. whenever I start typing a command, iTerm lists all previous versions of that command. see ...
2
votes
0answers
836 views

MacOS: Commands working on terminal but not on iTerm [closed]

I installed some packages like brew via terminal which altered $PATH. Now iTerm's $PATH is not same as terminal, causing CLI commands like brew not working on iTerm. echo $PATH on terminal gives: /...
2
votes
1answer
1k views

How to ssh-add a SSH key without recreating a new instance of SSH agent?

I add the following in my .bashrc ssh-add ~/.ssh/id_rsa so when I open a new tab in my shell/terminal app (iTerm2 on macOS), it automatically add the SSH identity using the SSH agent and I don't ...
1
vote
0answers
160 views

Tmux use bright colors?

I'm using iTerm and I was wondering if it was possible to use the "bright" colors in the Tmux config file. I googled this and I seen something that did fg=cyan,bg=black,bright and when I tried this, ...
1
vote
2answers
385 views

How can I disable keybindings / keybind in GNU screen?

I use iTerm2 on Mac and have customized control + ← and control + → to send hex 0x01 and 0x05 when pressed - which makes the cursor jump to the start and end of the line when typing or ...
1
vote
0answers
32 views

iterm syncing sessions across new tabs

When I open up new tabs in iterm and change a directory, it syncs the old tabs to that new directory. I don't want this behavior. I'd like it to preserve the session that it was on. What's the problem ...
0
votes
1answer
539 views

can't save .zshrc file

I want to make aliases for my iterm2 so i tried to edit the .zshrc file. But the problem is for some reason i can't save the file, it gives me unable to save .zshrc I also tried to set alias ...
1
vote
1answer
4k views

bash: rsync: command not found [closed]

I'm on OSX using iTerm (3) with prezto as my zsh configuration framework. I've a strange error message when I use rsync: $ rsync -avz --exclude='.git' src/ remote:/dst bash: rsync: command not found ...
1
vote
0answers
322 views

Irssi: Using ALT + # to switch windows works for all windows but the first one

Somewhat of a bizarre issue, I'm using irssi in iterm3, and I have iterm set to read the left escape key as "+ESC" as this is how I've gotten irssi to recognize pressing option and a number key to ...
4
votes
3answers
115 views

Ensure less clears screen

Is there a way to ensure less clears screen on exit? The opposite of less -X. The screen is not being cleared when I exit a man page in iTerm2, however the screen is cleared when using the default ...
0
votes
0answers
221 views

tailing file in new terminal window

I have the following two bash scripts (perhaps they can be condensed into one). // pre-tail.sh #!/usr/bin/env bash open -b com.apple.terminal `dirname $0`/tail.sh // tail.sh #!/usr/bin/env bash ...
2
votes
2answers
739 views

Tmux displays “<xzy not ready>” in the status bar

I'm using iTerm 2 nightly and I have the following tmux config setting for the left status bar: set -g status-left "#[fg=green]#h @ #[fg=cyan]#(extip | awk '{print \"ip \" $1}') #[fg=yellow]#(...
1
vote
0answers
113 views

OS/X: can't execute shell scripts - spawns a new window which exits immediately

Issue: When I try to open any shell scripts a new window is spawned, which exits immediately. Files .bash_profile, .bashrc and a helloworld.sh are tested examples. Interestingly, running open ...
0
votes
1answer
2k views

How to setup Mac OS X Terminal on bash and iTerm2 on zsh

I attempted to setup bash shell by default on Mac OS X (Yosemite) Terminal app and zsh shell by default on iTerm2 app. However, it is either bash shell or zsh shell for both the apps. $ chsh -s /bin/...
6
votes
1answer
3k views

How to preview image in tmux in iTerm2

iTerm2 is able to display images within the terminal. I'm using the imgcat script and it works fine, but when I'm inside of tmux it does nothing. Is there a way to be able to preview images inline in ...
6
votes
2answers
10k views

Configure tmux to use zsh

Right now I have my iTerm session configured to use zsh (/usr/local/bin/zsh), but I'm trying to configure tmux to use zsh as well, instead of /bin/bash/, which it's currently defaulting to. So far ...
0
votes
1answer
121 views

color scheme setup for iTerm

How do you setup color scheme of iTerm on Mac? For color scheme, I mean using different color to display folder name, file name, machine name, etc.
4
votes
2answers
7k views

Background color mismatch in vim and tmux

I'm having trouble getting the full range of colors to work in vim when I'm running through tmux. I belive that it's some sort of trouble with TERM variables or 256colors, but I've done everything I ...
2
votes
2answers
518 views

zsh keeps forgetting PATH vars

I'm using [oh-my-zsh] in iTerm on MacBook running Mavericks. I have iTerm set to source my .zsh file on load, and mostly that works. cd && source .zsh Except when it doesn't. Sometimes, ...
33
votes
3answers
8k views

What terminal emulators support tmux control mode?

tmux has its control mode, activated with -CC, to allow the terminal emulator to control tmux. iTerm2 uses this to great effect for allowing tmux windows to appear as separate iTerm windows. Are ...
0
votes
1answer
600 views

Bash/OSX script to run commands in 2 Terminal/iTerm tabs?

To run my node server proxy and then my project in Gulp Browsersync, every time i need to run node server in one tab, open a tab in the same directory and run Gulp. I'm not sure if the second tab is ...
10
votes
2answers
5k views

How do I find number of vertical lines available in the terminal?

I'm writing a script which shows the git log for a directory when I cd into it. Such a log can be overwhelming, containing hundreds of lines. So far I have been limiting that to a hard-coded 20 lines (...
2
votes
1answer
750 views

on osx vim 7.3 set number set relative number not working

I'm using OSX Mavericks. Using VIM 7.3, I can't seem to get the "hybrid" line numbers to work. I was reading a tutorial stating that if both set number and set relativenumber were included in the ....
0
votes
1answer
548 views

Can I get my iTerm key-combos working in tmux?

I have some shortcut keys defined in iTerm, and I use them for key-mappings in Vim. For example, I map Ctrl-Enter to send a ^[O2P escape code, which I then use to define a Ctrl-Enter key-mapping in ...
1
vote
0answers
168 views

Resizing terminal splits

I'm trying to find a way to manipulate my terminal splits In my .vimrc I have set width=78 When I have vertical splits and change back and forth the active split is at least 78 chars. It squishes any ...
7
votes
2answers
13k views

How do I increase my iterm (tmux) window scrollback (not the line scrollback)

When I want to scroll back, i.e. with my mouse (or with PageUp) I can only go up about 43 pages (about 2000 lines). Can I increase that? I have my terminal preference -> "Scrollback Lines" set to ...