change .g updating

This commit is contained in:
2018-07-10 00:41:09 +04:00
parent 7bec27eaf6
commit f8d56b69e9
2 changed files with 13 additions and 3 deletions

View File

@@ -117,7 +117,7 @@ beet-comments() {
: "${1:?who?}" : "${1:?who?}"
: "${2:?what?}" : "${2:?what?}"
dedi-beet modify "comments='$2'" "albumartist:'$1'" dedi-beet modify \'"comments=$2"\' \'"albumartist::$1"\'
} }
rsync2() { rsync2() {
@@ -137,7 +137,7 @@ rsync2() {
"${(@)@}" "${(@)@}"
} }
sync_music() { sync-music() {
FUNCTION_PRELUDE FUNCTION_PRELUDE
if ! is_local; then if ! is_local; then
@@ -206,4 +206,14 @@ ffmpeg_timelapse() {
-pattern_type glob -i "/mnt/a/snaps/$DATE/*.jpg" \ -pattern_type glob -i "/mnt/a/snaps/$DATE/*.jpg" \
"${@:2}" \ "${@:2}" \
-y "/mnt/a/$DATE.mp4" -y "/mnt/a/$DATE.mp4"
}
update_.g() {
local RES=$(.g pull)
if [[ $RES != "Already up-to-date." ]]; then
echo "Updated .g"
echo $RES
echo "======"
fi
} }

View File

@@ -62,4 +62,4 @@ if is_local; then
fi fi
# update, background+disown # update, background+disown
.g pull &! update_.g &!