From f8d56b69e989f88ab80db0e97c35e99724beed70 Mon Sep 17 00:00:00 2001 From: Abra Date: Tue, 10 Jul 2018 00:41:09 +0400 Subject: [PATCH] change .g updating --- .zprezto/runcoms/zalias | 14 ++++++++++++-- .zprezto/runcoms/zshrc | 2 +- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.zprezto/runcoms/zalias b/.zprezto/runcoms/zalias index 4d17441..a1bc1b7 100644 --- a/.zprezto/runcoms/zalias +++ b/.zprezto/runcoms/zalias @@ -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 @@ -206,4 +206,14 @@ ffmpeg_timelapse() { -pattern_type glob -i "/mnt/a/snaps/$DATE/*.jpg" \ "${@: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 } \ No newline at end of file diff --git a/.zprezto/runcoms/zshrc b/.zprezto/runcoms/zshrc index 9f0dc0e..d1f9991 100644 --- a/.zprezto/runcoms/zshrc +++ b/.zprezto/runcoms/zshrc @@ -62,4 +62,4 @@ if is_local; then fi # update, background+disown -.g pull &! +update_.g &!