From 383e35c14aa8b78a7128fbcfe378cfd6f06cc53e Mon Sep 17 00:00:00 2001 From: pika Date: Sun, 8 Jun 2025 11:58:19 +0200 Subject: [PATCH] addet keychain --- .bashrc | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.bashrc b/.bashrc index cb17b2d..39c423f 100644 --- a/.bashrc +++ b/.bashrc @@ -184,8 +184,6 @@ _init() { done fi fi - - setup-keychain } # ─< ble.sh -- https://github.com/akinomyoga/ble.sh >───────────────────────────────────── @@ -239,10 +237,6 @@ _env() { neovim) if ! command_exists nvim; then echo_missing "$pkg" - else - EDITOR=nvim - fi - if command_exists vim; then EDITOR=vim elif command_exists vi; then @@ -250,7 +244,10 @@ _env() { else echo_missing "vim & vi" fi + else + EDITOR=nvim fi + ;; *) if ! command_exists $pkg; then @@ -335,6 +332,13 @@ main() { _source "$HOME/.bash/plugins/autopairs.sh" _source "$HOME/.fzf/shell/completion.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