zeesh/zshrc-stub
2020-04-19 12:24:30 -07:00

19 lines
557 B
Bash

# vim: ft=zsh :
autoload -U colors && colors
PROMPT="%{$fg[cyan]%}%n%{$fg[white]%}@%{$fg[magenta]%}%m %{$fg[white]%}%~ %# "
RPROMPT="%{$fg_bold[black]%}%T%{$reset_color%}"
_zshrc_updates_pending=0
if type md5sum &> /dev/null; then
current_stub_sum="$(md5sum ~/.zshrc | awk '{ print $1 }')"
new_stub_sum="$(md5sum ~/.local/share/zeesh/zshrc-stub | awk '{ print $1 }')"
if [[ ! current_stub_sum == new_stub_sum ]]; then
cp ~/.local/share/zshrc-stub ~/.zshrc
_zshrc_updates_pending=1
fi
fi