-
-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update reminders #346
Comments
I once thought about it but decided not to implement it as the default behavior. One of the reasons is that an automatic update can pull an unstable version. Since Nevertheless, I guess it would be useful to have an extra module for such behavior as an opt-in feature. I'd accept a PR in the |
How about updating to the latest non-master tagged version? |
The non-master tagged version is rarely updated less than once per year. |
This was easy enough to implement, this is a small PoC that I started using myself at the end of # 'ble.sh' update checker
if [[ $- == *i* && -d $HOME/.blesh/.git ]]; then
_blesh_check() {
local file=$HOME/.blesh/.git/FETCH_HEAD
if [[ ! -f $file ]]; then
echo "ble.sh never updated, consider running 'ble-update'"
elif local days_ago=14 && [[ $(find "$file" -mtime "+$days_ago" -print) ]]; then
echo "ble.sh older than $days_ago days, consider running 'ble-update'"
fi
}
_blesh_check
fi |
How can I make ble-update run in a script? I keep getting command not found, even though it will run at prompt fine. |
See README §1.5:
|
Do you think it would be a good idea to implement auto-reminders in the shell, by default every 2 weeks or so, to run
ble-update
?oh-my-zsh
has this.The text was updated successfully, but these errors were encountered: