#kleine fish - Welcome - Nachricht set -U fish_greeting "Hallo du kleiner Fish" setenv SSH_ENV $HOME/.ssh/environment function start_agent echo "Initializing new SSH agent ..." ssh-agent -c | sed 's/^echo/#echo/' > $SSH_ENV echo "succeeded" chmod 600 $SSH_ENV . $SSH_ENV > /dev/null ssh-add end function test_identities ssh-add -l | grep "The agent has no identities" > /dev/null if [ $status -eq 0 ] ssh-add if [ $status -eq 2 ] start_agent end end end if [ -n "$SSH_AGENT_PID" ] ps -ef | grep $SSH_AGENT_PID | grep ssh-agent > /dev/null if [ $status -eq 0 ] test_identities end else if [ -f $SSH_ENV ] . $SSH_ENV > /dev/null end ps -ef | grep $SSH_AGENT_PID | grep -v grep | grep ssh-agent > /dev/null if [ $status -eq 0 ] test_identities else start_agent end end # Einstell u ng e n nur f ΓΌ r die interakti v e Nutzung if status is-interactive # abr statt alias # # # alias zshconfig="vim ~/.zshrc" {% if ansible_facts['os_family'] == "Debian" %} abbr cat "/usr/bin/batcat" {%else %} abbr cat "bat" {% endif %} abbr ll "eza -loi --git --git-repos --header --hyperlink -X -s size" abbr vim "nvim" abbr activate_poetry 'eval $(poetry env activate)' export CDPATH="/home/$USER/:/home/$USER/Projekte" abbr -a gc 'git commit ' # Liebling seditor set -gx EDITOR /usr/bin/nvim #/home/jonnybravo/Projekte/Python_Skripte/SSH_Agent/main.py fastfetch # -c /home/jonnybravo/.config/fastfetch/my_config.jsonc if type -q tmux if not test -n "$TMUX" tmux attach-session -t default; or tmux new-session -s default end end if [ -n "$SSH_AGENT_PID" ] ps -ef | grep $SSH_AGENT_PID | grep ssh-agent > /dev/null if [ $status -eq 0 ] test_identities end else if [ -f $SSH_ENV ] . $SSH_ENV > /dev/null end ps -ef | grep $SSH_AGENT_PID | grep -v grep | grep ssh-agent > /dev/null if [ $status -eq 0 ] test_identities else start_agent end end end