summaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
authorxyz <gky44px1999@gmail.com>2021-09-12 00:31:14 -0700
committerxyz <gky44px1999@gmail.com>2021-09-12 00:31:14 -0700
commit7061966669022818c923d1be3a9cd897dd00def6 (patch)
tree5ce4651eb35a325ae8d139fd6654c6d75c2506d4 /.local/bin
parent9ee00b50afcc4c021590bb17759b4ef877ca007d (diff)
upd, git push usb
Diffstat (limited to '.local/bin')
-rwxr-xr-x.local/bin/upd11
1 files changed, 10 insertions, 1 deletions
diff --git a/.local/bin/upd b/.local/bin/upd
index 962c0aaa..244b2692 100755
--- a/.local/bin/upd
+++ b/.local/bin/upd
@@ -40,6 +40,14 @@ qb ()
curlqb "$HOME/programs/qbittorrent_search_plugins/"
}
+usb ()
+{
+ cfgc push usb
+ cfgl push usb
+ cfgs push usb
+ git --git-dir="$XDG_DOCUMENTS_DIR/notes/.git" --work-tree="$XDG_DOCUMENTS_DIR/notes/" push usb
+}
+
if [ $# -eq 0 ]; then
pac
qb
@@ -48,7 +56,7 @@ if [ $# -eq 0 ]; then
refl
gall
else
- while getopts rgknpq opt; do
+ while getopts rgknpqu opt; do
case $opt in
r)refl;;
g)gall;;
@@ -56,6 +64,7 @@ else
n)ncm;;
p)pac;;
q)qb;;
+ u)usb;;
\?)exit 1;;
esac
done