Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/bash_aliases.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@
alias vim='nvim'
alias vi='nvim'

# push kitty's xterm-kitty terminfo to a remote host (one-time per host),
# so plain ssh/scp/rsync into it no longer fail with "unknown terminal type".
# .why = remotes lack kitty's terminfo; ship the entry once, no ssh wrapper.
# usage: ssh.terminfo.push user@host
alias ssh.terminfo.push='_ssh_terminfo_push'
_ssh_terminfo_push() {
[[ -z "$1" ]] && { echo "usage: ssh.terminfo.push user@host"; return 2; }
infocmp -x xterm-kitty | ssh "$1" 'tic -x -o ~/.terminfo /dev/stdin'
}

# open notes
alias notes='nvim ~/git/notes/main.txt'

Expand Down