add jjbm script to get latest bookmark

This commit is contained in:
Andrew Lee
2024-12-28 18:16:22 -07:00
parent 099c3f209e
commit a9b7c5aa4d
4 changed files with 31 additions and 24 deletions

View File

@@ -1,9 +1,5 @@
if status is-interactive
# Commands to run in interactive sessions can go here
functions -q _insert_jj_after_git; and _insert_jj_after_git
if set -q GHOSTTY_RESOURCES_DIR
source "$GHOSTTY_RESOURCES_DIR/shell-integration/fish/vendor_conf.d/ghostty-shell-integration.fish"
end
if type -q zoxide
zoxide init fish | source
end
@@ -24,4 +20,7 @@ end
alias ls="lsd"
fish_add_path $HOME/.webman/bin
set -gx EDITOR nvim

View File

@@ -10,6 +10,7 @@ if not functions -q fisher
end
fish_add_path ~/.webman/bin/
set -gx --path XDG_DATA_DIRS $XDG_DATA_DIRS:$HOME/.local/share/
# if atuin is not installed, install it
if not type -q atuin
@@ -19,4 +20,6 @@ if not type -q atuin
else
atuin import auto
end
end
end

View File

@@ -0,0 +1,3 @@
function jjbm
jj log -r 'heads(::@ & bookmarks())' --ignore-working-copy --template 'bookmarks' --no-graph | head -n1 | cut -d " " -f1
end