minimal: Remove zprofile

This commit is contained in:
Quentin Boyer 2024-08-28 10:22:53 +02:00
parent 80eeca7102
commit 85b0a79a52
2 changed files with 0 additions and 25 deletions

View file

@ -426,7 +426,6 @@
};
home.file = {
".zprofile".source = ./zprofile;
".config/python/pythonrc".text = ''
import os
import atexit

View file

@ -1,24 +0,0 @@
SSH_ENV="$HOME/.ssh/agent-environment"
function start_agent {
echo "Initialising new SSH agent..."
ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
echo succeeded
chmod 600 "${SSH_ENV}"
. "${SSH_ENV}" > /dev/null
ssh-add;
}
# Source SSH settings, if applicable
if [ -f "${SSH_ENV}" ]; then
. "${SSH_ENV}" > /dev/null
#ps ${SSH_AGENT_PID} doesn't work under cywgin
ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || {
start_agent;
}
else
start_agent;
fi
#source $HOME/.nix-profile/etc/profile.d/hm-session-vars.sh