Questions tagged [iterm]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
25 views

Multiple ssh IDs & localhost Confusion

I've been operating on a single local ssh ID for some time. I connect to servers on my LAN after copying my public key to them for future quick connects. Worked fine. I have a Github account that ...
user avatar
  • 113
1 vote
1 answer
3k views

BREW ERROR : compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew_cask

I recently got this error: compinit:503: no such file or directory: /usr/local/share/zsh/site-functions/_brew_cask I didn't install anything new. I just updated the brew using "brew update" ...
user avatar
0 votes
1 answer
379 views

Tmux copy and scroll iterm

How can I copy from a large file by scrolling. I am unable to start the selection. I was able to start copy mode by ctrl + B [ But I am unable to begin the selection . I used space still no luck.I ...
user avatar
1 vote
1 answer
73 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 ...
user avatar
  • 181
2 votes
0 answers
1k 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: /...
user avatar
3 votes
1 answer
3k 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 ...
user avatar
  • 157
1 vote
2 answers
915 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, ...
user avatar
  • 11
2 votes
2 answers
1k 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 ...
user avatar
  • 41.3k
2 votes
0 answers
49 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 ...
user avatar
0 votes
1 answer
2k 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 ...
user avatar
4 votes
1 answer
11k 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 ...
user avatar
  • 353
1 vote
0 answers
364 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 ...
user avatar
  • 191
4 votes
3 answers
175 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 ...
user avatar
  • 43
0 votes
0 answers
394 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 ...
user avatar
3 votes
2 answers
2k 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]#(...
user avatar
  • 131
1 vote
0 answers
119 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 ...
user avatar
0 votes
1 answer
3k 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/...
user avatar
  • 225
9 votes
1 answer
4k 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 ...
user avatar
  • 1,091
12 votes
2 answers
21k 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 ...
user avatar
0 votes
1 answer
148 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.
user avatar
  • 25
7 votes
3 answers
11k 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 ...
user avatar
3 votes
2 answers
968 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, ...
user avatar
  • 131
49 votes
3 answers
14k 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 ...
user avatar
1 vote
1 answer
672 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 ...
user avatar
  • 111
19 votes
2 answers
7k 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 (...
user avatar
  • 498
2 votes
1 answer
872 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 ....
user avatar
0 votes
1 answer
650 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 ...
user avatar
  • 1,654
1 vote
0 answers
182 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 ...
user avatar
  • 113
11 votes
2 answers
19k 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 ...
user avatar