dotfiles

My configuration files.
Log | Files | Refs | README

commit f56c4c7ac662b8c30db74e184b723ced4609256a
parent 9f82ee4cda6d33c55a78d761d35106b91bf8bfc8
Author: Sven Möller <sven-moeller@outlook.de>
Date:   Tue, 14 Dec 2021 18:08:28 +0100

Add sync function

Diffstat:
Mbin/.local/bin/bm | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/bin/.local/bin/bm b/bin/.local/bin/bm @@ -79,6 +79,11 @@ interactive () { "$action" "$line" "$from_file" "$to_file" } +sync () { + git diff --quiet || git commit -am "Update" + git pull && git push +} + help () { echo "Usage: $(basename $1) COMMAND" echo "Commands:" @@ -97,6 +102,7 @@ case "$1" in i) interactive ;; ia) interactive "$archive_file" "$urls_file" ;; add) add "$2" ;; + s|sync) sync ;; git) "$@" ;; *) add "$1" "$2" ;; esac