Compare commits

...

2 Commits

Author SHA1 Message Date
nicole a4c3a1319b early support for dotfile management 2026-06-06 15:10:04 -07:00
nicole 3b5aa28838 improvement to kitty support 2026-06-06 15:09:41 -07:00
4 changed files with 36 additions and 3 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
*.swp *.swp
pull.log pull.log
update.tbl update.tbl
dotfiles.git
+9 -1
View File
@@ -7,11 +7,19 @@ fi
setopt prompt_subst setopt prompt_subst
kitty_available=n kitty_available=n
# detection method one
if (( ${+KITTY_SHELL_INTEGRATION} )); then if (( ${+KITTY_SHELL_INTEGRATION} )); then
kitty_available=y
[[ "$KITTY_SHELL_INTEGRATION" == "disabled" ]] && return # don't integrate if configured not to [[ "$KITTY_SHELL_INTEGRATION" == "disabled" ]] && return # don't integrate if configured not to
autoload -Uz -- "${KITTY_INSTALLATION_DIR}/shell-integration/zsh/kitty-integration" autoload -Uz -- "${KITTY_INSTALLATION_DIR}/shell-integration/zsh/kitty-integration"
kitty-integration && unfunction kitty-integration kitty-integration && unfunction kitty-integration
kitty_available=y
fi
# detection method two
if [[ $kitty_available == n && -n "$KITTY_INSTALLATION_DIR" ]]; then
export KITTY_SHELL_INTEGRATION=${ZEESH_KITTY_INTEGRATION:-enabled}
autoload -Uz -- "${KITTY_INSTALLATION_DIR}/shell-integration/zsh/kitty-integration"
kitty-integration && unfunction kitty-integration
kitty_available=y
fi fi
function ticker_message () { function ticker_message () {
+4 -1
View File
@@ -1,2 +1,5 @@
alias ls="ls --color=auto" ls_arguments=('--color=auto')
[[ $kitty_available == y ]] && ls_arguments+='--hyperlink=auto'
alias ls="ls ${(j/ /)ls_arguments}"
alias grep="grep --color=auto" alias grep="grep --color=auto"
+21
View File
@@ -0,0 +1,21 @@
if [[ $_zeesh_fresh_install -eq 1 ]]; then
ticker_finish
if [[ -v ZEESH_DOTFILES_DIR ]]; then
if read -q "ZEESH_DOTFILES?Configure dotfile management? [yn] "; then
read "ZEESH_DOTFILES_INPUT?Location of dotfile repo? [~/.local/share/zeesh/dotfiles.git] "
export ZEESH_DOTFILES_DIR="${ZEESH_DOTFILES_INPUT:-${HOME}/.local/share/zeesh/dotfiles.git}"
echo "ZEESH_DOTFILES_DIR=${ZEESH_DOTFILES_DIR}" >> $HOME/.zshrc.preload
fi
fi
fi
if [[ -v ZEESH_DOTFILES_DIR ]]; then
if [[ ! -d $ZEESH_DOTFILES_DIR ]]; then
ticker_message "initializing dotfiles repository"
git init --bare --quiet $ZEESH_DOTFILES_DIR
git --git-dir=$ZEESH_DOTFILES_DIR config status.showUntrackedFiles no
fi
alias dotfiles='git --git-dir="$ZEESH_DOTFILES_DIR" --work-tree="$HOME"'
fi