From 0fae49bb3ce1f3f0a67b24a46b8458363b1c75fd Mon Sep 17 00:00:00 2001 From: Szymon P Date: Thu, 3 Jul 2025 17:05:45 +0200 Subject: [PATCH] Update .bashrc --- dot_bashrc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/dot_bashrc b/dot_bashrc index aa13a14..dabb6c2 100644 --- a/dot_bashrc +++ b/dot_bashrc @@ -51,6 +51,23 @@ PS1="${USER_COLOR}\u${RESET_COLOR}@${HOST_COLOR}\h${RESET_COLOR} ${SEP_COLOR}|${ eval "$(atuin init bash)" eval "$(zoxide init bash)" +# git +gh auth setup-git + +# Uruchamianie ssh-agent jeśli nie działa +if ! pgrep -u "$USER" ssh-agent > /dev/null; then + eval "$(ssh-agent -s)" +fi + +# Dodawanie klucza, jeśli nie został jeszcze dodany +if ! ssh-add -l | grep -q "$(basename ~/.ssh/github)"; then + ssh-add ~/.ssh/github > /dev/null 2>&1 +fi + + +clear +fastfetch --config ~/.config/fastfetch/startup.jsonc + # path PATH=$PATH:~/.local/bin/