Thanks to visit codestin.com
Credit goes to github.com

Skip to content

startup-dotfiles/terminal-emulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles --- kitty terminal emulator

Screenshot

# Backup/Rename
[ -d $HOME/.config/kitty ] mv $HOME/.config/kitty $HOME/.config/kitty.bak
# Clone
git clone https://github.com/startup-dotfiles/terminal-emulator.git $HOME/.config/kitty

# These files can be deleted after installation.
rm -r README.md LICENSE assets/ .git/ .gitignore

Keybindings

  • Modifier key: Ctrl+Shift

See keybindings.conf

Troubleshooting

SSH

See Arch Wiki: kitty#Terminal issues with SSH

When kitty is used to ssh into a remote that does not have its terminfo, various issues can occur. The solution is normally to copy over the terminfo. Kitty has an ssh kitten to automate exactly this.

# Use the following command instead of ssh.
# It automatically copies kitty's terminfo to the remote host when using an SSH connection.
kitty +kitten ssh user@host

Or you can fix this by copying your local kitty terminfo to the remote host as follows:

Note

For Arch user, you can install kitty-terminfo. (see /usr/lib/kitty/terminfo/kitty.terminfo)

# In local host
infocmp > kitty.terminfo          # export kitty's terminfo
scp kitty.terminfo user@host: ~/  # or any other method to copy to the remote host

# In remote host
tic -x kiity.terminfo  # import terminfo for current user
rm kitty.terminfo      # optional: remove terminfo file

# After this, you will need to start a new SSH session to have the remote shell load the new terminfo.

Otherwise, try setting TERM to a more likely available value, such as xterm-256color. Note that this may disable some terminal features.

# option 1: add the following to your kitty.conf (Recommanded)
term   xterm-256color
# option 2: add the following to your shell config
export TERM=xterm-256color  # bash/zsh
set -gx TERM xterm-256color # fish

References

Configs