Questions tagged [iterm]

29 questions
54
votes
3 answers

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 there other terminal emulators that support control…
Michael Ekstrand
  • 2,064
  • 3
  • 21
  • 23
23
votes
2 answers

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 (... | head -n 20), which is fine on the screen…
jalanb
  • 578
  • 4
  • 15
14
votes
3 answers

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 nothing I've read up on has gotten me where I need.…
Justian Meyer
  • 241
  • 1
  • 2
  • 5
12
votes
2 answers

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 1000000 I also have my bashrc set…
Michael Durrant
  • 41,213
  • 69
  • 165
  • 232
9
votes
1 answer

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 tmux in iTerm2?
aharris88
  • 1,121
  • 1
  • 10
  • 13
8
votes
3 answers

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 have been able to find online to get 256 colors…
The Wind-Up Bird
  • 201
  • 1
  • 2
  • 4
7
votes
1 answer

bash: rsync: command not found

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 rsync: connection unexpectedly closed (0 bytes…
bachr
  • 423
  • 1
  • 4
  • 10
4
votes
1 answer

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 need to manually type SSH password in that tab. But…
qazwsx
  • 177
  • 1
  • 6
4
votes
3 answers

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 mac terminal. Does anyone have…
jpm
  • 43
  • 3
3
votes
2 answers

Tmux displays "" 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]#(ifconfig en0 | grep 'inet ' | awk '{print \"en0 \" $2}') …
JustSid
  • 131
  • 4
3
votes
2 answers

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, even in the middle of a session, it will forget my…
Robusto
  • 131
  • 4
2
votes
0 answers

MacOS: Commands working on terminal but not on iTerm

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…
2
votes
2 answers

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 editing commands (opposed to one word at a time) - and the alt…
cwd
  • 44,479
  • 71
  • 146
  • 167
2
votes
0 answers

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 here?
Cameron
  • 121
  • 3
2
votes
1 answer

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 .vimrc file, you could get a relative number on all…
visyoual
  • 67
  • 6
1
2