The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [iterm]

iTerm is a third party replacement for the built-in Terminal application.

Filter by
Sorted by
Tagged with
2
votes
0answers
2k views

Making the iTerm2 color tab labels on activity more useful

In using iTerm2, I frequently see tabs turning a different color, and just assumed that this was because of new output in that window. The help was no good, as I couldn't find a decent word to search ...
2
votes
0answers
681 views

Get iTerm session by tty name

I want to run a command within an iTerm2 session like this: tell application "iTerm" tell session id "/dev/ttys020" exec command "ls" end end But I get the following error (with and without '...
2
votes
0answers
97 views

How to prevent OS X's 'screen' command from resizing the terminal upon entry?

I usually run my terminal sessions in 132 character wide mode in iTerm. However, when I start the 'screen' command, it re-sizes the terminal back to 80 characters. Is there a way to prevent this?
2
votes
0answers
327 views

Tmux wihtin iTerm2: Unable to bind some keyboard combinations

I have the following bind-key definitions in my .tmux.conf file: bind-key -n M-I select-pane -U bind-key -n M-K select-pane -D bind-key -n M-J select-pane -L bind-key -n M-L select-pane -R However, ...
2
votes
0answers
94 views

why does less seem to think my terminal has more lines than it does?

Don't know if this is really an OS X question, but: less seems to insist that my terminal (whether I'm using the builtin Terminal or iTerm2) has more lines than are actually displayed, and so the top ...
2
votes
2answers
522 views

Non-native full screen in Terminal.app

If you press Cmd+Enter on iTerm while having the preference "Use native fullscreen windows" turned off, it goes into fullscreen but not the standard MacOS-way. Is there a way of doing the same in ...
1
vote
2answers
3k views

Keyboard shortcuts for new window in Chrome or iTerm2

Is there any functionality in Chrome, iTerm2, or a keyboard shortcut app that will let me open a new window (Chrome or iTerm2) in a global environment? It should open a new window regardless of ...
1
vote
2answers
1k views

How in IRSSI can I switch channels? CTRL + number doesn't work

I just installed irssi using Brew in High Sierra. Using iTerm 2, I can't figure out how to change windows (channels). Pressing CTRL 2 for example doesn't take me to channel 2 like it would on an Linux ...
1
vote
3answers
2k views

Changing color of folders, files, execs on iTerm2

on iTerm2 bash If there any way to change the color when 'ls' so i can quickly know if it's a directory, a file, a script, exec? Just like the Ubuntu terminal so you know a directory color for ...
1
vote
1answer
275 views

Disable command-enter keyboard shortcut in iTerm2

Currently cmd-enter in iTerm2 toggles fullscreen mode. Is there a way to disable this keyboard shortcut?
1
vote
1answer
615 views

Disable 'find cursor' shortcut in iTerm2

By default iTerm2 uses shortcut ⌘/ to find cursor on screen. And I want the sortcut ⌘/ to apply to another action. But I can't find out how to do this on new version of iTerm2. How to disable find ...
1
vote
2answers
1k views

Hidden login script

I have a bash shell script that runs on login. Even though I selected the "hide" checkbox in system preferences, iTerm still shows while running it. How do I completely hide it?
1
vote
3answers
831 views

Why does Terminal ignore capital “B”?

this happens to me from time to time: when I am using the Terminal, suddenly the terminal starting to ignore the capital 'B', regular 'b' works fine, other capital letter work fine. other applications ...
1
vote
1answer
57 views

iTerm2: Non standard characters are differently sized than other characters

Recently I changed iTerm2's default setting so that the default font size is larger when I open it up. However this increased font size only seems to apply to the standard characters. The non standard ...
1
vote
3answers
2k views

How to Purge iTerm2

My iTerm2 had developed some bug where it no longer saved new profiles. After restarting the app, the new profile would be gone. Therefore I tried reinstalling the app. I deleted it from the ...
1
vote
1answer
691 views

Opening a specific page on Mac Preview from Terminal

How I can modify the open filename.pdf command so that I can open a desired page number directly without having to scroll down.
1
vote
1answer
88 views

Show window dimensions in titlebar in iTerm2

In the default Terminal app the current width and height of the window are always displayed in the title bar, whereas in iTerm2 they're only displayed for a few moments when resizing. How can I ...
1
vote
1answer
425 views

iTerm2: Difference between preloaded Light and Dark themes

I can't seem to spot the difference between the preloaded two themes: Light and Dark. Background: I was looking for a theme that "inverts" the default color scheme, i.e. dark text and light ...
1
vote
1answer
624 views

Folder icon in titlebar for iTerm2

macOS's default terminal shows the current directory as an icon in the titlebar (called a proxy icon). I can use it to navigate up, or drag the icon to another window to insert the path. Is there a ...
1
vote
1answer
680 views

Terminal prompt changed

So, I was trying to add Laravel to my list of executable commands and, somehow, I fudged up my iTerm 2 (and regular Terminal) and now they both appear like this. MacBook-Pro% That just looks ugly. ...
1
vote
2answers
200 views

Why ALT+. (last parameter) does not work in Bash?

I am used to it from Linux terminals. Using both Terminal and iTerm.
1
vote
2answers
291 views

Terminal: how to make tab notify somehow when new text received

I'm familiar with some Terminal's, like in Linux, that have an option to "flash" or "change color" the tab's title text, whenever new text is "displayed" on that screen (for instance, tailing a file). ...
1
vote
1answer
1k views

Open iTerm and execute some commands automatically

I need to open some terminal sessions via iTerm 2 and execute commands on each terminal (e.g. rails s ; rails c) How to do it via automator or alfred?
1
vote
1answer
838 views

Switching terminal styles in iTerm 2

Recently I've been trying to become more efficient at the command line, and stumbled upon iTerm 2 a couple days ago. One feature of iTerm 2 is that windows can appear from the top of the screen, so ...
1
vote
1answer
29 views

Command line issues

I'm trying to execute two commands in a single line: pkill "something" && runsomething when executing each command separately, both work. When executed together with "&&", only the ...
1
vote
1answer
205 views

iTerm2 : Prevent lines from vim from going into scroll back

I was wondering how I can prevent iTerm2 from saving the output from a vim sessions into the scroll back history? This isn't a feature when you are editing confidential files.
1
vote
1answer
259 views

How to open multiple iTerm2 tab with admin privilege

So I have an executable program in my /usr/local/bin/ called myApp. I need to run multiple myApp processes in new iTerm2 tabs with sudo. The file structure is like this: --myFolder ----v1 ----v2 ---...
1
vote
1answer
305 views

Entering Unicode Characters with `ssh … tmux -CC a -t mySession` on iTerm2

When I ssh into the server and then open tmux, I'm able to enter in Unicode characters. It seems that the problem is specifically with sshing directly with tmux -CC a -t mySession. Edit: I'm trying ...
1
vote
1answer
411 views

Effective uid is not 0, is sudo installed setuid root?

I copied a file named class-dump to my /usr/bin folder, then neither Terminal.app nor iTerm2 work properly on my MacBook. There is something wrong with the sudo command. Here is what I did based on ...
1
vote
1answer
892 views

Understanding “sending hex code”

Recently I've installed iTerm2 and customized key mappings. For example, I wanted Command+Delete to remove the entire line. In order to achieve this I created a new key mapping where Command+Delete ...
1
vote
2answers
303 views

iTerm spits out text every time I start a new session - why, and how to stop it?

Whenever I start a new session with iTerm, it sends sudo su and PS1="[web stage | \d \t \w]:" to the terminal window. I'm think this is something that someone set up for me in iTerm a long time ago. ...
1
vote
1answer
507 views

How to enable iTerm2's system-wide hotkey when iTem2 is not running

For me system-wide hotkey does not work when iTerm2 is closed. Is there a way to enable it? Or maybe create an instance of iTerm that runs invisibly in background and listens for hotkey?
1
vote
1answer
904 views

OS X copy paste into Terminal adds fdbf bfb9 b083 to beginning and end of selection

For the life of me, I can't figure this out. When using a browser (doesnt matter which), if I select text, then paste in Vim or Neovim, I see characters added to the beginning and end of my selection....
1
vote
1answer
2k views

iTerm2 does not show username, machine name, time

On my new mac machine, I could not do autocomplete for Git when I hit Tab. So I thought to modify the terminal and found certain things on this link. I may have messed when I installed iTerm2, Oh-My-...
1
vote
1answer
537 views

How do I disable the “theme loaded” message in zsh

Im using zsh as my default shell and loving it. I have random themes enabled, and whenever I load a theme it displays a message on my terminal. How do I disable this message? Im talking about [oh-...
1
vote
2answers
2k views

Change mouse pointer in iTerm2 (or disable mouse pointer)

In iTerm2 (fullscreen mode) my pointer is permanently a "text select" pointer. It bothers me, so I would either like to change it (to the regular arrow-type pointer) or disable it when in my ...
1
vote
1answer
153 views

How to make Powerline fonts work with iTerm2

I have a problem with using Powerline fonts in the iTerm2. I followed the tutorial for installation and I have chosen Hack font in the profile settings (Non-ASCII is set just to make sure). My .zshrc ...
1
vote
1answer
22 views

Toggling between chunk of input in iterm2 with “Alt + arrow left/right” writes “[D” instead jumping from chunk to chunk

I just started to use iterm2 on MacOS and find that it has really nice features especially for splitting terminal screen. However, when trying to toggle between chunk of input in with "Alt + arrow ...
1
vote
1answer
109 views

macOS Terminal.app can't split with Command + D

I installed zsh. When I press Command + D in iTerm2, it could split normally. But when I return to using Terminal.app, I use bash or zsh, it can't split with Command + D, it changed like the ...
1
vote
1answer
941 views

iterm3 reverse minimal theme compact style

When my term updated to its latest version (Build 3.3.0beta1), it removed the titlebar from the window. Apparently iTerm's theme is now: minimal. And the default profile window type is: compact But ...
1
vote
1answer
126 views

How can I get iTerm out of fullscreen mode?

I must have hit some keystrokes which got me stuck in full screen mode and there are no resize icons when you over mouse at top of screen even though the task bar shows up. How do I get out of full ...
1
vote
1answer
95 views

macOS terminal: quick way to edit command options after bash/zsh autocomplete

The issue I use autocomplete from history a lot whether that's with up-arrow or typing the first few letters and completing the whole command including all arguments (options and others) with right-...
1
vote
1answer
1k views

iTerm2 command line configuration

Is there a way to configure iTerm2 preferences from the command line? I am specifically looking to automate setting the Key preferences, for instance configuring escape codes to be sent when certain ...
1
vote
1answer
85 views

iTerm2 number conversion

I right-clicked on a number, and iTerm2 shows me the number conversion in hex. But what is the 168.64 Ki number? What does Ki denote?
1
vote
1answer
635 views

Edit commands in iTerm2 with standard OS text keyboard/mouse controls

I'm a heavy terminal user, but I'd like to be edit commands like I would in any other mac app, e.g.: select a portion of a command with the mouse and press backspace to delete it use shift+up to ...
1
vote
1answer
144 views

Find images of a specific size and move them to trash from terminal

Im sorting images in a kinda large image library, and thumbnails from old iPhoto-library is still in there. And I'm in need of removing them to improve speed of sorting the images. I have found this ...
1
vote
1answer
1k views

Sending ctrl+function key on iTerm2

Byobu has some keybindings that require a modifier key and a function key, like Shift+f2 or Ctrl+f7. Unfortunately macOS picks these up instead and does god knows what with them. How do I send these ...
1
vote
2answers
90 views

Assign command up (⌘↑) to go to parent folder in iTerm

The ⌘+↑ key takes you to the parent folder in Finder. How can I assign this key to do the same in iTerm - basically an alias for cd ..?
1
vote
1answer
1k views

iTerm2 applies strange color to vim's default

When I updated my iTerm2 recently in November (the main release, not nightly-build), colors are rendered strange. Fortunately, I restored old iTerm2 in the trash can, and made a comparison. In each ...
1
vote
1answer
582 views

Keep app “always on top” in El Capitan

Is there a way to keep in app always in front of other apps? The tool referenced here - Afloat - doesn't work in El Capitan. Would love to keep iTerm2 always in the forefront but can't find a way to ...