Home

Search IconIcon to open search

kitty

A cool terminal emulator!

Various:

Tabs:

Windows:

Plugins:

# Notes

It’s better to install Kitty in a folder accessible to all users (like /opt). And edit visudo to preserve TERMINFO env variable, because backspace and other keys won’t work properly.

sudo apt install kitty-terminfo does smth on remote machines(?)

# Sublime Text sample build config

1
2
3
4
5
6
7
8
9
"build_systems":
	[
		{
			"working_dir": "$project_path",
			"name": "Run in kitty",
			"shell_cmd": "kitty-socket.fish \"cd $project_path && make && ./3DViewer\n\"",
			// "shell_cmd": "kitty --hold sh -c \"make && ./3DViewer\""
		}
	]

kitty-socket.fish:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
#!/usr/bin/env fish

set SOCK "$XDG_RUNTIME_DIR/kitty.sock"

if test -S $SOCK
	kitty @ --to "unix:$SOCK" focus-window
else
	kitty --config ~/.config/kitty/kitty-mariana.conf --listen-on="unix:$SOCK" &; disown;
	while not test -S "$SOCK";
		sleep 0.1;
	end
end

# kitty @ --to "unix:$SOCK" send-text "make -f $PWD/Makefile && $PWD/3DViewer\n"
kitty @ --to "unix:$SOCK" send-text $argv