addet keychain

This commit is contained in:
pika 2025-06-08 11:58:19 +02:00
parent c324fb889d
commit 383e35c14a

16
.bashrc
View file

@ -184,8 +184,6 @@ _init() {
done done
fi fi
fi fi
setup-keychain
} }
# ─< ble.sh -- https://github.com/akinomyoga/ble.sh >───────────────────────────────────── # ─< ble.sh -- https://github.com/akinomyoga/ble.sh >─────────────────────────────────────
@ -239,10 +237,6 @@ _env() {
neovim) neovim)
if ! command_exists nvim; then if ! command_exists nvim; then
echo_missing "$pkg" echo_missing "$pkg"
else
EDITOR=nvim
fi
if command_exists vim; then if command_exists vim; then
EDITOR=vim EDITOR=vim
elif command_exists vi; then elif command_exists vi; then
@ -250,7 +244,10 @@ _env() {
else else
echo_missing "vim & vi" echo_missing "vim & vi"
fi fi
else
EDITOR=nvim
fi fi
;; ;;
*) *)
if ! command_exists $pkg; then if ! command_exists $pkg; then
@ -335,6 +332,13 @@ main() {
_source "$HOME/.bash/plugins/autopairs.sh" _source "$HOME/.bash/plugins/autopairs.sh"
_source "$HOME/.fzf/shell/completion.bash" _source "$HOME/.fzf/shell/completion.bash"
_source "$HOME/.fzf/shell/key-bindings.bash" _source "$HOME/.fzf/shell/key-bindings.bash"
if command_exists keychain; then
eval "$(keychain --eval --noask --agents ssh ~/.ssh/{homelab-id_rsa,hetzner_id_rsa})"
# setup-keychain
else
echo_missing "keychain"
fi
} }
main main