iterm2

shortcuts

[!NOTE|label:references:]

SHORTCUT
DESCRIPTION

+ u

background transparent toggle

integrate terminal in Alfred

[!NOTE|label:references:]

  • v0.7

tab

setup a colorful tab

pick colors

tabset list

add favor color to a file (~/.marslo/.colors)

get color hex (for it2setcolorarrow-up-right)

[!TIP] download original csscolor.js if necessory:

show color in iterm2arrow-up-right

  • usage:

  • result:

itit <string> c
itit string bc

  • to change the number of entries in the autocomplete menu:

  • to change the number of coprocess commands remembered:

  • to preserve whitespace in selections copied to the pasteboard:

  • When you open a file from the finder in iTerm2 (e.g., by double-clicking a shell script), it will either open in a window or a tab. By default, it opens in a tab. You can change this with:

  • quite iTerm2 when the last session is closed

  • increase the delay before it attempts to reconfigure itself after a change of monitors

  • to change the number of paste history entries saved:

  • pastes (both regular and slow) are done by splitting the text to paste into chunks. there is a delay between the transmission of each chunk. to change the speed that "paste" pastes at:

  • to change the speed that "paste slowly" pastes at:

  • to disable using the pinch gesture to change font size:

  • to keep LC_CTYPE from being set when locale environment variables are set:

  • to allow Growl notifications to be posted for the current tab:

  • to tune smart cursor color settings:

  • to allow a three-finger tap to act like a three-finger click:

  • to change the set of characters that are considered part of a URL (besides alphanumerics):

  • to use some experimental optimizations that will improve performance (safety not guaranteed):

  • to tweak tab sizes:

  • to change your search engine:

  • to adjust the speed of the animation of the hotkey window's appearance and disappearance:

  • to adjust the amount of dimming of split panes. Set the value to a floating-point number between 0 (no dimming) and 1 (complete dimming). The default is 0.15:

advanced paste

remove the last newline character when pasting

[!NOTE|label:see also:]

advanced paste
paste without newline

broadcast input

SHORTCUT
DESCRIPTION

+ + + i

send input to current session only

+ + i

broadcast input to all panes in all tabs

+ + i

broadcast input to all panes in the tab

+ + + + i

toggle broadcast input to current session

broadcast input
broadcast input

AI

[!NOTE|label:references:]

ai

configure

[!NOTE|label:references:]

gpt-3.5-turbo
gpt-4
gpt-4-turbo

enable AI Prompt:

sample

  • AI Prompt

  • custom url: https://api.openai.com/v1/completions

shortcut

SHORTCUT
DESCRIPTION

+ y

Engage Artificial Intelligence

+ + .

Engage Artificial Intelligence

  • ⌘ + yai shortcut - c+y

  • ⇧ + ⌘ + .

    ai shortcut - 1
    ai shortcut - 2
    ai shortcut - 3
    ai shortcut - 4
SHORTCUT
DESCRIPTION

^ + +

Add cursor above

^ + +

Add cursor below

^ + + click

Add cursor

+ drag

Add cursors

+ Y

Natural language AI lookup

+ F

Open Find bar

+ + V

Open in Advanced Paste

+ click

Open in explainshell.com

+

Send contents or selection

+ +

Send command at cursor

+

Enqueue command at cursor

+ + ;

View command history

theme

[!NOTE|label:references:]

Last updated