add jjbm script to get latest bookmark
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
3
dot_config/private_fish/functions/jjbm.fish
Normal file
3
dot_config/private_fish/functions/jjbm.fish
Normal 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
|
||||
Reference in New Issue
Block a user