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...@@ -60,10 +60,16 @@ in
60 enable = true;60 enable = true;
61 shellAliases = {61 shellAliases = {
62 switch = "~/config/switch";62 switch = "~/config/switch";
63 gg = "lazygit";63
64 ga = "git add";64 # move a bookmark from the previous commit
65 g = "git status";65 jf = "jj git fetch";
66 gp = "git pull --rebase && git push";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";
67 };73 };
68 initContent = ''74 initContent = ''
69 export PS1="%{$(tput setaf 207)%}%m%{$(tput setaf 15)%}:%{$(tput setaf 87)%}%~ %{$(tput sgr0)%}$ "75 export PS1="%{$(tput setaf 207)%}%m%{$(tput setaf 15)%}:%{$(tput setaf 87)%}%~ %{$(tput sgr0)%}$ "
...@@ -75,6 +81,21 @@ in...@@ -75,6 +81,21 @@ in
75 fi81 fi
76 uv run --project "$dirname" "$@"82 uv run --project "$dirname" "$@"
77 }83 }
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 }
78 '';99 '';
79 };100 };
80101
users/clover/work/home.nix+2-2
...@@ -10,10 +10,10 @@...@@ -10,10 +10,10 @@
10 };10 };
11 home.packages = with pkgs; [11 home.packages = with pkgs; [
12 (bun.overrideAttrs (_: rec {12 (bun.overrideAttrs (_: rec {
13 version = "1.2.23";13 version = "1.3.0";
14 src = fetchurl {14 src = fetchurl {
15 url = "https://github.com/oven-sh/bun/releases/download/bun-v${version}/bun-darwin-aarch64.zip";15 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=";
17 };17 };
18 }))18 }))
19 doppler19 doppler