Questions tagged [iterm]
iTerm is a full featured terminal emulation program written for OS X using Cocoa.
118
questions
0
votes
0
answers
14
views
iTerm/zsh? list colors just won't change
I just want to change the color of the completion list in my iTerm.
I am using zsh, but when I change the theme, the list colors stay in this ugly red with gray background. Can someone help? I have ...
0
votes
0
answers
34
views
How can I view more of my history in Screen on MAC?
I have a screen on iTerm on my MAC that printed out a lot of important messages. I didn't set the scrollback buffer to be unlimited unfortunately. How can I view more messages from my current screen ...
0
votes
0
answers
141
views
Why would iTerm2 need to record the computer's screen?
I finally installed iTerm2 on my Mac to improve my efficiency working in the terminal. Right out of the box it's been great. I got a popup saying "iTerm would like to record this computer's ...
3
votes
2
answers
3k
views
Up arrow key for history not working in zsh and iTerm (MacOS)
For the last few weeks I've been unable to use the up and down arrow keys to navigate my command history in zsh.
I'm using the following:
Intel MacBook Pro with macOS Big Sur 11.0.1 (20B29)
zsh 5.8 (...
1
vote
1
answer
165
views
How can I add run-help to zshrc without errors?
zshcontrib suggests adding the following to .zshrc to use the run-help command:
unalias run-help
autoload run-help
However when I add it I get the error
.zshrc:unalias:9: no such hash table element: ...
0
votes
1
answer
738
views
How to uninstall iTerm form the mac?
How can I uninstall iTerm from my Mac? I searched a lot on the Internet but I didn't find any helpful Informations.
I want to mention too that I installed iTerm without using Homebrew.
1
vote
0
answers
57
views
iTerm now showing cursor when pressing Shift + arrow key
As you can see in this picture, iTerm is adding a kind of overlay cursor (plus this paper icon) above the terminal windows when I press Shift + any arrow key. It seems to be a text selection tool or ...
1
vote
2
answers
434
views
ssh login causes repeating characters in my zsh
I am on a Mac using iTerm2 and zsh v5.7.1. When I login from my local computer to the remote computer using 'ssh', most of the characters are repeated at the prompt as I type. Clearing the line with ...
0
votes
1
answer
257
views
Weird terminal bug(?) - have to control+c after every command
I'm having a weird issue with both terminal and iterm, where when I cd into a specific directory (and every subfolder), I have to control+c to 'exit' after every command that I run, and only then can ...
0
votes
1
answer
668
views
How to reload iterm plist file?
I want to change my iterm background photo in every 10 mins.
So I tried to use cmd /usr/libexec/PlistBuddy to change the config file com.googlecode.iterm2.plist.
And here is my command:
/usr/...
0
votes
1
answer
681
views
iTerm2, updating manually
I downloaded older version of iTerm2.
Currently I have iTerm -> iTerm2
and
iTerm2 in /Applications/iTerm.app
i.e. I update iTerm. Now, I want to update iTerm2, but not through iTerm2's Check ...
0
votes
1
answer
2k
views
How can I change the line height in iTerm2?
I've tried looking through iTerm2's text preferences, but I don't see a way to change line height.
How can I add more space between lines in iTerm2 for Mac?
1
vote
0
answers
71
views
How to clear out white space on top of zsh/iterm
Hi I have been bugged by this for a while. Everytime I open up a new terminal window, there's a huge white space on top that doesn't do anything, same thing with my VSCode where I set the terminal to ...
11
votes
1
answer
9k
views
Iterm2 : how to display status bar
In the Iterm2 online docs:
Go to Preferences > Profiles > Session. Turn on Status bar enabled.
but I don't find this setting in the preference pane:
Preferences screenshot
Obviously the version ...
2
votes
0
answers
647
views
Vim Iterm extremely slow and laggy compared to Linux machine with same setup
Vim and iterm is very slow on macos. There is noticeable lag when scrolling down the page when holding down jk. Many plugins also slow down vm dramatically such as syntastic. For example, with ...
2
votes
1
answer
1k
views
My iTerm font seems to dark for me
My iTerm font seems to dark for me. Any idea to change the brightness?
1
vote
3
answers
92
views
iTerm2: automatically remove $ sign in copied commands
When we copy paste commands from articles on the web, there is often a $ at the beginning. Is there a way to automatically remove it when pasting it into iTerm?
5
votes
2
answers
3k
views
Can I have the terminal prompt at the vertical middle of a window?
I just realized that I hunch over a lot when using the terminal since the prompt is always at the bottom of the terminal window, which is vertically maximized.
I would like the prompt to be at the ...
3
votes
1
answer
436
views
Make cmd-click on a file name in iTerm add that filename to the command
By default, iTerm lets you cmd-click filenames and urls to open them with the system's default app. I want to be able to change that so it adds the filename to the command I'm currently typing.
This ...
0
votes
0
answers
104
views
Create keyboard bindings for go back word and go forward word in iTerm using config file?
I have tried adding the following to my ~/.inputrc but it doesn't work
"\e[1;9D": backward-word
"\e[1;9C": forward-word
What more do I need to do?
9
votes
1
answer
3k
views
iTerm window highlighted on the current line
I do not understand why the active terminal command line is highlighted. I am using iTerm2 and also have zsh and oh-my-zsh installed, but even after disabling them I still see this. Any ideas?
1
vote
1
answer
557
views
integrate tmux tabs with vim tabs
I'm trying to simplify the way that I navigate between tabs in my terminal. Using ssh <workstation> -t 'tmux -CC attach', I can get iTerm to display tmux tabs as native macOS tabs (and therefore ...
1
vote
1
answer
68
views
Make alt/option key work as in all other applications
I'm using the alt/option key quite extensively, e.g. square brackets, curly brackets, jumping left/right etc.
The only way I've found to set alt/option to behave as it should (as in all other ...
1
vote
1
answer
135
views
Unsplit tabs in iterm
I had attempted to tear a tab from iterm by dragging it out into its own window. Somehow the result instead is that it were added as a second panel below the first one:
Now how can either of the ...
0
votes
1
answer
454
views
iterm shell integration not integrating
I'm trying to switch to iterm from terminal. I install latest iTerm2 (3.1.5), select iTerm2 in the top left hand corner, and click 'Install Shell Integration'. Basically, I followed these instructions ...
2
votes
1
answer
2k
views
Type text into iTerm terminal from apple script
I'm trying to paste text from apple script to iTerm.
activate application "iTerm"
tell application "iTerm"
tell current tab of current window
set cmd to "command"
keystroke cmd
...
2
votes
1
answer
3k
views
Open a NEW WINDOW in CHROME in INCOGNITO Mode from terminal with specified URLS
I need help on completing a bash script which should be able to
Open New Window (Not tabs) in Chrome (Or chrome canary)
Open each new window in INCOGNITO Mode
Open the specified URL in script
My ...
1
vote
0
answers
290
views
syntax highlighting breaks off on vim as you page up/down (on OSX terminal and iterm2)
This is a weird bug
the problem is the syntax highlighting (say zenburn) on vim randomly appears and disappears as I page up and down (using ctrlu and ctrld).. for example compare these two renders ...
0
votes
1
answer
1k
views
iTerm2 Bash/Prompt colors faded/different from terminal?
I'm so confused and I've been pulling my hair out for hours now. I've been trying to get my bash text to have the same color as I do on my desktop, it works fine in the default terminal app on mac, ...
1
vote
1
answer
472
views
The arrow keys, even when disabled in vimrc, type ABCD then go into insert mode. Why?
When I hit the arrow keys in vim I get the behavior illustrated in
this illustrated Gif.
I would like to only use hjkl to navigate. Any time I hit the arrow keys (up, down, left or right) I want it ...
11
votes
3
answers
16k
views
Reuse .bash_profile for Fish in Mac
I'm using iTerm on my Mac and I have a .bash_profile that I have been comfortably using. I recently got to know about fish bash and I installed it on my Mac and all of a sudden my .bash_profile is not ...
2
votes
1
answer
1k
views
How to select text in Iterm using hotkeys
I am using iTerm as terminal and zsh with oh-my-zsh as shell. Sometimes I would like to select part of entered command only using hot keys.
How can I do it?
3
votes
2
answers
3k
views
On MacOS Sierra beta 5 using iterm 2 and tmux, I have lost the ability to copy/paste in tmux.
I want to copy/paste in my tmux sessions like I was able to with El Capitan. I just installed MacOS Sierra and I no longer have this functionality. I didn't realize how often I utilized this ...
1
vote
1
answer
589
views
Is there a copy-mode ( like in tmux ) for ITerm2?
I like the copy-mode in tmux because it lets me search,copy text in the terminal without reaching for the mouse. The vi-bindings in copy mode is an added bonus. Is there anything similar for iterm2 ?
17
votes
1
answer
9k
views
How to keep terminal window title in sync with tmux window
I am using a program called "Timing" to track my time. Timing uses the name of the current window in iTerm for categorization purposes.
I'd like to set the current title of iTerm to match the name of ...
1
vote
0
answers
367
views
How to open iTerm2 version 3 in Forklift
I am looking for a solution which can open iTerm2 version 3 as the default terminal. For iTerm2 version 2 there were multiple AppleScripts on the internet which worked well for opening the current ...
1
vote
3
answers
4k
views
need to source bash_profile in each new iterm window
I am on macbook pro, el capitan. I have aliases set in .bash_profile, which work in the first instance of iTerm, however they are not recognized if I open a new iTerm instance, I have to do source ~/....
26
votes
3
answers
44k
views
Scrolling on Mac with Tmux and iTerm
I'm using iTerm 2.1.4 and Tmux on OS X Yosemite. I'd like to be able to scroll my iTerm windows up and down but I'm not sure what controls scrolling. Does tmux control scrolling when I use it with ...
0
votes
1
answer
1k
views
ZSH in iTerm2: Why my prompt can only use 8 colors?
I am trying to set a color prompt in ZSH ($TERM=xterm-256color), but it can only get 8 colors out: Only the bright version of the colors. This is only the case for prompt, while the other applications ...
1
vote
1
answer
2k
views
Trigger an echo command after ssh in iterm2
I'm trying to trigger the following command after "ssh somehost":
export PROMPT_COMMAND='echo -ne "\033]0;$HOSTNAME\007"'
nothing seems to work, any suggestions?
2
votes
1
answer
610
views
How can I get vim autocompletion working in iTerm
I recently switched from MacVim to regular Vim in iTerm. I've been encountering an issue where I can't get vim's autocompletion to trigger using Ctrl-N.
Instead, I get iTerm's autocompletion which ...
11
votes
3
answers
4k
views
Jumping to previous prompt in terminal
In a terminal, are there any shortcuts to jump to a previous/next prompt? Scrolling up and trying to find the start of a log slows down my workflow.
I'm using iTerm on OSX, but this should be ...
0
votes
1
answer
1k
views
How to access Solarized color values within bash script
I'm trying to make my bash PS1 prompt colors according to the Solarized theme. I have solarized installed and working for iTerm2, but so far have been unsuccessful in creating a custom PS1 prompt that ...
0
votes
1
answer
2k
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.
thanks in advance,
Lin
0
votes
0
answers
2k
views
Highlight bash output in iTerm 2?
I've followed the instructions for installing Solarized on iTerm 2, on my new OSX Yosemite machine. It looks as though the background and basic colours are being applied, and $TERM produces xterm-...
1
vote
0
answers
371
views
Iterm on top of all windows? [duplicate]
Is there a possibility for Iterm to always be on top?
I have seen some issues but don't know whether it's already implemented.
Issue 2640 in iterm2: Always on Top function
8
votes
1
answer
4k
views
How to configure tmux/iTerm to display session name as title in terminal tab?
I am getting started using tmux and iTerm2 on Mac OS X. Currently, all my tabs are titled "tmux" (assuming it's just displaying the process name) which makes it difficult to find the tab that I want. ...
10
votes
2
answers
5k
views
iTerm2 pin Visor (hotkey) window
Is there anyway to pin (keep on top) the Visor / hotkey window for iTerm2?
Every time I give focus to another window (e.g. Chrome for documentation), iTerm2's hotkey window disappears. I have to ...
0
votes
1
answer
1k
views
ssh session immediately on starting xterm
What's the most elegant way to start an xterm window that, instead of opening a bash shell for the local computer and requires me to execute my ssh command manually, opens an ssh session for remote ...
1
vote
0
answers
82
views
Constant name of iterm2 tab
I can change the title of terminal tabs in iTerm2 by pressing CMD-I and setting some name. But as soon as I open e.g. vim and close it, tab name is reset to what my prompt says, instead of being "...