File: kitty.zsh

package info (click to toggle)
kitty 0.42.1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 28,564 kB
  • sloc: ansic: 82,787; python: 55,191; objc: 5,122; sh: 1,295; xml: 364; makefile: 143; javascript: 78
file content (21 lines) | stat: -rw-r--r-- 774 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/zsh
#
# This file can get sourced with aliases enabled. Moreover, it be sourced from
# zshrc, so the chance of having some aliases already defined is high. To avoid
# alias expansion we quote everything that can be quoted. Some aliases will
# still break us. For example:
#
#   alias -g -- -r='$RANDOM'
#
# For this reason users are discouraged from sourcing kitty.zsh in favor of
# invoking kitty-integration directly.

# ${(%):-%x} is the path to the current file.
# On top of it we add :A:h to get the directory.
'builtin' 'typeset' _ksi_file="${${(%):-%x}:A:h}"/kitty-integration
if [[ -r "$_ksi_file" ]]; then
    'builtin' 'autoload' '-Uz' '--' "$_ksi_file"
    "${_ksi_file:t}"
    'builtin' 'unfunction' '--' "${_ksi_file:t}"
fi
'builtin' 'unset' '_ksi_file'