diff options
author | xyz <gky44px1999@gmail.com> | 2021-10-17 00:05:01 -0700 |
---|---|---|
committer | xyz <gky44px1999@gmail.com> | 2021-10-17 00:05:01 -0700 |
commit | a2690f9eebfd3b9118203a548c4eeccf6b78f7d5 (patch) | |
tree | 6e466150f4f001aadcb55cd8835dcb7940306be8 /.local | |
parent | f40125600954f2a1e059c82d1a10a33a6d8067d6 (diff) |
combine cfgx to cfg, add chmod feature to cfg, update cfgx to cfg in scripts
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/cfgc | 3 | ||||
-rwxr-xr-x | .local/bin/cfgl | 3 | ||||
-rwxr-xr-x | .local/bin/cfgs | 3 | ||||
-rwxr-xr-x | .local/bin/gita | 12 | ||||
-rwxr-xr-x | .local/bin/upd | 8 |
5 files changed, 10 insertions, 19 deletions
diff --git a/.local/bin/cfgc b/.local/bin/cfgc deleted file mode 100755 index 41b61a1e..00000000 --- a/.local/bin/cfgc +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -git --git-dir="$HOME/.mycfg_cross_platform/" --work-tree="$HOME" "$@" diff --git a/.local/bin/cfgl b/.local/bin/cfgl deleted file mode 100755 index d1eba360..00000000 --- a/.local/bin/cfgl +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -git --git-dir="$HOME/.mycfg_local/" --work-tree="$HOME" "$@" diff --git a/.local/bin/cfgs b/.local/bin/cfgs deleted file mode 100755 index 4133a790..00000000 --- a/.local/bin/cfgs +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -git --git-dir="$HOME/.mycfg_local_secrets/" --work-tree="$HOME" "$@" diff --git a/.local/bin/gita b/.local/bin/gita index 6f5dc76c..c3d8520c 100755 --- a/.local/bin/gita +++ b/.local/bin/gita @@ -5,9 +5,9 @@ cmd='git' while getopts cls f; do case $f in - c) cmd='cfgc';; - l) cmd='cfgl';; - s) cmd='cfgs';; + c) cmd='cfg -c';; + l) cmd='cfg -l';; + s) cmd='cfg -s';; \?) exit 1;; esac done @@ -15,6 +15,6 @@ shift $((OPTIND-1)) mes="${1:-refactor}" -"$cmd" add -u -"$cmd" commit -m "$mes" -"$cmd" push +$cmd add -u +$cmd commit -m "$mes" +$cmd push diff --git a/.local/bin/upd b/.local/bin/upd index b759b44d..65452b37 100755 --- a/.local/bin/upd +++ b/.local/bin/upd @@ -51,7 +51,7 @@ g () misc () { - cfgc submodule foreach git pull + cfg -c submodule foreach git pull nvim +PlugUpgrade +PlugClean! +PlugUpdate +qa tldr --update sudo hardcode-fixer @@ -89,9 +89,9 @@ refl () usb () { - cfgc push usb - cfgl push usb - cfgs push + cfg -c push usb + cfg -l push usb + cfg -s push git --git-dir="$XDG_DOCUMENTS_DIR/notes/.git" --work-tree="$XDG_DOCUMENTS_DIR/notes/" push usb } |