From 7bd940d7172addb997e7c275b51537d4f146d956 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Wed, 14 May 2025 11:45:48 -0500 Subject: [PATCH] remove unused sections of .profile --- .profile | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/.profile b/.profile index d5f91b5..084981b 100644 --- a/.profile +++ b/.profile @@ -1,13 +1,3 @@ -# ~/.profile: executed by the command interpreter for login shells. -# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login -# exists. -# see /usr/share/doc/bash/examples/startup-files for examples. -# the files are located in the bash-doc package. - -# the default umask is set in /etc/profile; for setting the umask -# for ssh logins, install and configure the libpam-umask package. -#umask 022 - # if running bash if [ -n "$BASH_VERSION" ]; then # include .bashrc if it exists @@ -15,30 +5,3 @@ if [ -n "$BASH_VERSION" ]; then . "$HOME/.bashrc" fi fi - -# set PATH so it includes user's private bin directories -PATH="$HOME/bin:$HOME/.local/bin:$PATH" - -export EDITOR=vim -export GPG_TTY=$(tty) - -if [ ! -e /run/systemd/system ]; then - SSH_ENV="${HOME}/.ssh/env" - - function start_ssh_agent { - ssh-agent | sed -e '/^echo/d' > "${SSH_ENV}" - chmod 0600 "${SSH_ENV}" - . "${SSH_ENV}" - } - - if [ -f "${SSH_ENV}" ]; then - . "${SSH_ENV}" - if ! kill -0 "${SSH_AGENT_PID}" > /dev/null 2>&1; then - start_ssh_agent - fi - else - start_ssh_agent - fi -else - export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" -fi