diff --git a/.config/fish/conf.d/abbr.fish b/.config/fish/conf.d/abbr.fish index cee1101c..5d7f8eee 100644 --- a/.config/fish/conf.d/abbr.fish +++ b/.config/fish/conf.d/abbr.fish @@ -10,3 +10,5 @@ abbr -a --set-cursor gcm git commit -m \"%\" abbr -a lsa ls -a -l abbr -a hconf hx /home/fic/.config/helix/config.toml abbr -a hlang hx /home/fic/.config/helix/languages.toml +abbr -a hjust hx /home/fic/.config/just/justfile +abbr -a justg just -g diff --git a/.config/just/justfile b/.config/just/justfile new file mode 100644 index 00000000..ca083431 --- /dev/null +++ b/.config/just/justfile @@ -0,0 +1,22 @@ +default: + @just -g --list + +# confirm the recipe pwd +pwd: + pwd + +# commit all? extra-opts? +commit arg="" extra="": + #!/bin/fish + if test "{{ arg }}" = 'all' + git add . + git commit {{ extra }} + else if test "{{ arg }}" = "" + git commit -a $extra + else + echo '{{ arg }} is not a valid argument!' + end + +# commit all? --amend +amend arg="": + @just -g commit {{ arg }} "--amend" diff --git a/.config/yadm/tracked b/.config/yadm/tracked index 7a6bc1f4..62983ea5 100644 --- a/.config/yadm/tracked +++ b/.config/yadm/tracked @@ -66,3 +66,4 @@ .config/tui-journal .config/vdirsyncer .config/khal +.config/just