Remove unnused options
This commit is contained in:
parent
2c242ebce4
commit
b020a4a7d7
2 changed files with 7 additions and 35 deletions
21
.profile
21
.profile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue