inital commit
@@ -0,0 +1,27 @@
|
||||
#!/usr/bin/env zsh
|
||||
#
|
||||
if test -n "$KITTY_INSTALLATION_DIR"; then
|
||||
if ! command -v kitty >/dev/null 2>&1; then
|
||||
export KITTY_SHELL_INTEGRATION="enabled"
|
||||
autoload -Uz -- "$KITTY_INSTALLATION_DIR"/shell-integration/zsh/kitty-integration
|
||||
kitty-integration
|
||||
unfunction kitty-integration
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ -f "$DOTFILES/kitty/logo/${$(hostname):l}.png" ]]; then
|
||||
KITTY_LOGO_FILE=$DOTFILES/kitty/logo/${$(hostname):l}.png
|
||||
else
|
||||
KITTY_LOGO_FILE=$DOTFILES/kitty/logo/default.png
|
||||
fi
|
||||
export KITTY_LOGO_FILE
|
||||
|
||||
_change_kitty_logo () {
|
||||
[[ -n $KITTY_WINDOW_ID ]] && kitten @ set-window-logo --match id:$KITTY_WINDOW_ID $KITTY_LOGO_FILE
|
||||
}
|
||||
|
||||
if [[ -n $KITTY_WINDOW_ID ]]; then
|
||||
autoload -Uz add-zsh-hook
|
||||
add-zsh-hook precmd _change_kitty_logo
|
||||
fi
|
||||
|
||||
|
After Width: | Height: | Size: 94 KiB |
|
After Width: | Height: | Size: 24 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 11 KiB |
@@ -0,0 +1 @@
|
||||
nicks-macbook-air.local.png
|
||||
|
After Width: | Height: | Size: 233 KiB |
|
After Width: | Height: | Size: 65 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 50 KiB |
|
After Width: | Height: | Size: 50 KiB |