authorgravatar for git@paperclover.netclover caruso <git@paperclover.net> 2025-10-22 18:18:44-07:00
committergravatar for git@paperclover.netclover caruso <git@paperclover.net> 2025-10-22 18:18:44-07:00
log970faf03945ee254b2d2e9e161cac7b7b590621a
treee5d170010240becb01082abab33e3c0b121f6d9c
parent3d450c6f3d1d516a0c07f146debb5bd73d6c9e36

work stuff


2 files changed, 27 insertions(+), 6 deletions(-)

users/clover/home.nix+25-4
......@@ -60,10 +60,16 @@ in
6060 enable = true;
6161 shellAliases = {
6262 switch = "~/config/switch";
63 gg = "lazygit";
64 ga = "git add";
65 g = "git status";
66 gp = "git pull --rebase && git push";
63
64 # move a bookmark from the previous commit
65 jf = "jj git fetch";
66 e = "jj edit";
67 d = "jj desc";
68 bup = "jj b m --from 'parents(@)' --to '@'";
69 push = "jj git push";
70 moveself = "jj rebase -r @ -d";
71 logall = "jj log -r 'all()'";
72 cherry = "jj git fetch && jj split -i -p -m 'SPLIT_CHANGES' && jj edit -r 'description(\"SPLIT_CHANGES\")' && jj desc -m '' --edit";
6773 };
6874 initContent = ''
6975 export PS1="%{$(tput setaf 207)%}%m%{$(tput setaf 15)%}:%{$(tput setaf 87)%}%~ %{$(tput sgr0)%}$ "
......@@ -75,6 +81,21 @@ in
7581 fi
7682 uv run --project "$dirname" "$@"
7783 }
84
85 function pr() {
86 message=$(jj log -r '@' -T 'description' --no-graph)
87 if [[ -z "$message" ]] || [[ "$message" = "WIP:"* ]]; then
88 jj desc
89 fi
90 if [ -n "$1" ]; then
91 jj git push --named "clo/$1"=@
92 branch="clo/$1"
93 else
94 branch="$(jj log -r '@' -T '"clo/push-" ++ change_id.short()' --no-graph)"
95 jj git push -c @
96 fi
97 open "$(git remote get-url origin | sed 's/git@github\.com:/https:\/\/github.com\//' | sed 's/\.git$//')/compare/master...$branch"
98 }
7899 '';
79100 };
80101
users/clover/work/home.nix+2-2
......@@ -10,10 +10,10 @@
1010 };
1111 home.packages = with pkgs; [
1212 (bun.overrideAttrs (_: rec {
13 version = "1.2.23";
13 version = "1.3.0";
1414 src = fetchurl {
1515 url = "https://github.com/oven-sh/bun/releases/download/bun-v${version}/bun-darwin-aarch64.zip";
16 hash = "sha256-IvX6P/9ysNO45+D4BR7K3y5Bkg1HSsYttSeRRICckAU=";
16 hash = "sha256-hYSOP5ZIHvyr51pQD9O5S5u5VoaretCjiSl2x74VA2o=";
1717 };
1818 }))
1919 doppler