Files
dotfiles/config/bash/profile
T
gitadmin 325e51f5fc feat(herdr): add worktrunk, automatic-rename, and zoxide plugins
Add worktrunk keybindings for worktree management (switch/create/remove),
shell hooks for automatic-rename in bash and fish, and zoxide directory
browsing. Add mise setup task to install all three plugins.
Enable auto theme switching.
2026-07-28 15:47:53 -04:00

41 lines
942 B
Bash

append_path () {
case ":$PATH:" in
*:"$1":*)
;;
*)
PATH="${PATH:+$PATH:}$1"
esac
}
append_path "$HOME/.local/bin"
append_path "$HOME/.cargo/bin"
export PATH
if [ test -x $(command -v mise) ]; then
eval "$(mise activate bash)"
fi
if [ test -x $(command -v zoxide) ]; then
eval "$(zoxide init bash)"
fi
if [ test -x $(command -v fzf) ]; then
eval "$(fzf --bash)"
fi
if [ -z "$SSH_CONNECTION" ]; then
export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
fi
# Create a predictable symlink pointing to the current SSH auth socket
auth_sock="$HOME/.ssh/ssh_auth_sock"
if [ -n "$SSH_AUTH_SOCK" ] && [ "$SSH_AUTH_SOCK" != "$auth_sock" ]; then
mkdir -p "$HOME/.ssh"
ln -sf "$SSH_AUTH_SOCK" "$auth_sock"
fi
for _f in "$HOME"/.config/herdr/plugins/github/herdr-automatic-rename-*/shell/hook.bash; do
[ -r "$_f" ] && { source "$_f"; break; }
done