/
/
/
My dotfile repo. It sets aliases and installs generic applications for my user.
1customCommands:
2 - key: "U"
3 context: "global"
4 description: "Update bgl/prj/spc submodules to latest origin default branch"
5 loadingText: "Updating selected submodules..."
6 output: terminal
7 command: |
8 git submodule foreach --recursive '
9 case "$(printf "%s" "$name" | cut -c1-3)" in
10 "bgl"|"prj"|"spc")
11 echo "[$name] updating..."
12
13 git fetch &&
14 git checkout "$(git symbolic-ref refs/remotes/origin/HEAD | cut -d"/" -f4)" &&
15 git clean -ffxd &&
16 git pull &&
17 git submodule update --init --recursive
18 ;;
19 *)
20 echo "[$name] No bgl/prj/spc repo, leaving as is!"
21 ;;
22 esac
23 '
24 - key: "B"
25 context: "global"
26 description: "Open change branch tool"
27 loadingText: "Checking out branch in selected submodules..."
28 output: terminal
29 command: git cb
30