Remove unnused options

This commit is contained in:
Sonny Bakker 2020-08-15 18:36:17 +02:00
parent 2c242ebce4
commit b020a4a7d7
2 changed files with 7 additions and 35 deletions

View file

@ -5,7 +5,6 @@ export PAGER=less
export BROWSER=/usr/bin/firefox
CONTAINER_OR_VM=false
SSH_ENV="$HOME/.ssh/environment"
if [ -z "$(which systemd-detect-virt)" ] || [ "$(systemd-detect-virt)" != "none" ]; then
CONTAINER_OR_VM=true
@ -13,26 +12,6 @@ fi
export CONTAINER_OR_VM
if [ ! -f $SSH_ENV ]; then
mkdir $HOME/.ssh && touch $HOME/.ssh/environment
fi
function start_agent {
/usr/bin/ssh-agent | sed 's/^echo/#echo/' > "${SSH_ENV}"
chmod 600 "${SSH_ENV}"
. "${SSH_ENV}" > /dev/null
}
# source SSH settings, if applicable
if [ -f "${SSH_ENV}" ]; then
. "${SSH_ENV}" > /dev/null
ps -ef | grep ${SSH_AGENT_PID} | grep ssh-agent$ > /dev/null || {
start_agent;
}
else
start_agent;
fi
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists