update checks

This commit is contained in:
Nicole O'Connor 2020-04-21 16:39:58 -07:00
parent 0b9bff4d08
commit 4ac1ca7f6c
3 changed files with 12 additions and 0 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
*.swp
pull.log

9
base/updates.zsh Normal file
View File

@ -0,0 +1,9 @@
if type git &> /dev/null; then
ticker_message "zeesh: pulling from git" # TODO: less frequently, and background
start_dir="$(pwd)"
cd ~/.local/share/zeesh
git pull &> ~/.local/share/zeesh/pull.log
cd "${start_dir}"
fi

View File

@ -5,5 +5,6 @@ ticker_message "zeesh: bootstrap"
PROMPT="%{$fg_bold[cyan]%}%n%{$fg_bold[white]%}@%{$fg_bold[magenta]%}%m %{$fg_bold[white]%}%~ %# %{$reset_color%}"
source ~/.local/share/zeesh/base/precmd.zsh
source ~/.local/share/zeesh/base/updates.zsh
ticker_finish