| ... | ... | @@ -48,9 +48,10 @@ in |
| 48 | 48 | settings = { |
| 49 | 49 | theme = "light:Farmhouse Light,dark:Challenger Deep"; |
| 50 | 50 | font-family = "AT Name Mono"; |
| 51 | | adjust-cursor-thickness = 1; |
| 52 | | background-opacity = 0.9; |
| 51 | adjust-cursor-thickness = 2; |
| 52 | background-opacity = 0.95; |
| 53 | 53 | background-blur = true; |
| 54 | unfocused-split-opacity = 1; |
| 54 | 55 | }; |
| 55 | 56 | }; |
| 56 | 57 | |
| ... | ... | @@ -59,10 +60,16 @@ in |
| 59 | 60 | enable = true; |
| 60 | 61 | shellAliases = { |
| 61 | 62 | switch = "~/config/switch"; |
| 62 | | gg = "lazygit"; |
| 63 | | ga = "git add"; |
| 64 | | g = "git status"; |
| 65 | | 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"; |
| 66 | 73 | }; |
| 67 | 74 | initContent = '' |
| 68 | 75 | export PS1="%{$(tput setaf 207)%}%m%{$(tput setaf 15)%}:%{$(tput setaf 87)%}%~ %{$(tput sgr0)%}$ " |
| ... | ... | @@ -74,6 +81,21 @@ in |
| 74 | 81 | fi |
| 75 | 82 | uv run --project "$dirname" "$@" |
| 76 | 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 | } |
| 77 | 99 | ''; |
| 78 | 100 | }; |
| 79 | 101 | |