Questions tagged [iterm]
The iterm tag has no usage guidance.
28
questions
0
votes
0answers
665 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" ...
0
votes
1answer
105 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 ...
1
vote
1answer
50 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
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:
/...
3
votes
1answer
2k 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
2answers
506 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, ...
2
votes
2answers
938 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
38 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
1k 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 ...
2
votes
1answer
8k 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
350 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
154 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
332 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
...
3
votes
2answers
1k 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
116 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
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/...
7
votes
1answer
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 ...
10
votes
2answers
17k 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
142 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.
7
votes
3answers
9k 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 ...
3
votes
2answers
763 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, ...
41
votes
3answers
12k 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
647 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 ...
15
votes
2answers
6k 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
832 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
624 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
178 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 ...
8
votes
2answers
16k 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 ...