zeesh/zshrc-stub

31 lines
884 B
Plaintext
Raw Normal View History

2020-04-19 12:02:41 -07:00
# vim: ft=zsh :
2023-04-04 12:50:14 -07:00
# Hint: If you're looking to add things to zshrc, make a new file called .zshrc.local and
# put your changes there to avoid it getting clobbered by zeesh updates.
2020-04-19 12:16:56 -07:00
autoload -U colors && colors
PROMPT="%{$fg[cyan]%}%n%{$fg[white]%}@%{$fg[magenta]%}%m %{$fg[white]%}%~ %# "
RPROMPT=""
2020-04-19 12:16:56 -07:00
2020-04-21 16:58:05 -07:00
_zeesh_fresh_install=0
if [[ ! -d ~/.local/share/zeesh ]]; then
if type git &> /dev/null; then
printf "zeesh: installing"
2022-10-09 14:32:21 -07:00
git clone https://vcs.otl-hga.net/nicole/zeesh.git ~/.local/share/zeesh &> ~/zeesh-install.log
2020-04-21 16:58:05 -07:00
_zeesh_fresh_install=1
else
printf "zeesh: cannot install without git\n"
return
fi
2020-04-19 12:16:56 -07:00
fi
2020-04-19 12:27:49 -07:00
2020-04-20 02:05:56 -07:00
# kick things off
fpath=(
~/.local/share/zeesh/plugins
"${fpath[@]}"
)
[[ -f ~/.zshrc.preload ]] && source ~/.zshrc.preload
2020-04-21 16:43:03 -07:00
source ~/.local/share/zeesh/zeesh.zsh
2023-04-04 12:50:14 -07:00
[[ -f ~/.zshrc.local ]] && source ~/.zshrc.local