zeesh/zshrc-stub

19 lines
517 B
Plaintext
Raw Normal View History

2020-04-19 12:02:41 -07:00
# vim: ft=zsh :
2020-04-19 12:16:56 -07:00
autoload -U colors && colors
PROMPT="%{$fg[cyan]%}%n%{$fg[white]%}@%{$fg[magenta]%}%m %{$fg[white]%}%~ %# "
2020-04-19 12:02:41 -07:00
RPROMPT="%{$fg_bold[black]%}%T%{$reset_color%}"
2020-04-19 12:16:56 -07:00
_zshrc_updates_pending=0
if type md5sum &> /dev/null; then
2020-04-20 00:29:33 -07:00
cmp -s ~/.zshrc ~/.local/share/zeesh/zshrc-stub
2020-04-19 23:16:20 -07:00
if [[ $? -eq 1 ]]; then
2020-04-19 12:27:49 -07:00
cp ~/.local/share/zeesh/zshrc-stub ~/.zshrc
2020-04-19 12:16:56 -07:00
_zshrc_updates_pending=1
fi
fi
2020-04-19 12:27:49 -07:00
2020-04-19 23:16:20 -07:00
[[ _zshrc_updates_pending -eq 1 ]] && printf "zeesh: stub updates pending\n"