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?}"
: "${2:?what?}"
dedi-beet modify "comments='$2'" "albumartist:'$1'"
dedi-beet modify \'"comments=$2"\' \'"albumartist::$1"\'
}
rsync2() {
@@ -137,7 +137,7 @@ rsync2() {
"${(@)@}"
}
sync_music() {
sync-music() {
FUNCTION_PRELUDE
if ! is_local; then
@@ -207,3 +207,13 @@ ffmpeg_timelapse() {
"${@:2}" \
-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
# update, background+disown
.g pull &!
update_.g &!