feat: add sqlite storage and terminal ui
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
typeset -g PASEO_SHELL_INTEGRATION_DIR="${${(%):-%N}:A:h}"
|
||||
|
||||
if [[ -n "${PASEO_ZSH_ZDOTDIR-}" ]]; then
|
||||
export ZDOTDIR="${PASEO_ZSH_ZDOTDIR}"
|
||||
else
|
||||
unset ZDOTDIR
|
||||
fi
|
||||
|
||||
if [[ -n "${ZDOTDIR-}" ]]; then
|
||||
if [[ -f "${ZDOTDIR}/.zshenv" ]]; then
|
||||
source "${ZDOTDIR}/.zshenv"
|
||||
fi
|
||||
elif [[ -f "${HOME}/.zshenv" ]]; then
|
||||
source "${HOME}/.zshenv"
|
||||
fi
|
||||
|
||||
source "${PASEO_SHELL_INTEGRATION_DIR}/paseo-integration.zsh"
|
||||
@@ -0,0 +1,17 @@
|
||||
if [[ -n "${_PASEO_ZSH_INTEGRATION_LOADED-}" ]]; then
|
||||
return
|
||||
fi
|
||||
typeset -g _PASEO_ZSH_INTEGRATION_LOADED=1
|
||||
|
||||
autoload -Uz add-zsh-hook
|
||||
|
||||
function _paseo_precmd() {
|
||||
printf '\e]2;%s\a' "${PWD/#$HOME/~}"
|
||||
}
|
||||
|
||||
function _paseo_preexec() {
|
||||
printf '\e]2;%s\a' "$1"
|
||||
}
|
||||
|
||||
add-zsh-hook precmd _paseo_precmd
|
||||
add-zsh-hook preexec _paseo_preexec
|
||||
Reference in New Issue
Block a user