Remove unnused options
This commit is contained in:
parent
2c242ebce4
commit
b020a4a7d7
2 changed files with 7 additions and 35 deletions
21
.bashrc
21
.bashrc
|
|
@ -11,13 +11,13 @@ esac
|
||||||
# See bash(1) for more options
|
# See bash(1) for more options
|
||||||
HISTCONTROL=ignoreboth
|
HISTCONTROL=ignoreboth
|
||||||
|
|
||||||
# append to the history file, don't overwrite it
|
|
||||||
shopt -s histappend
|
|
||||||
|
|
||||||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
||||||
HISTSIZE=1000
|
HISTSIZE=1000
|
||||||
HISTFILESIZE=2000
|
HISTFILESIZE=2000
|
||||||
|
|
||||||
|
# append to the history file, don't overwrite it
|
||||||
|
shopt -s histappend
|
||||||
|
|
||||||
# check the window size after each command and, if necessary,
|
# check the window size after each command and, if necessary,
|
||||||
# update the values of LINES and COLUMNS.
|
# update the values of LINES and COLUMNS.
|
||||||
shopt -s checkwinsize
|
shopt -s checkwinsize
|
||||||
|
|
@ -95,15 +95,8 @@ fi
|
||||||
# enable programmable completion features (you don't need to enable
|
# enable programmable completion features (you don't need to enable
|
||||||
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
||||||
# sources /etc/bash.bashrc).
|
# sources /etc/bash.bashrc).
|
||||||
if ! shopt -oq posix; then
|
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
. /usr/share/bash-completion/bash_completion
|
||||||
. /usr/share/bash-completion/bash_completion
|
elif [ -f /etc/bash_completion ]; then
|
||||||
elif [ -f /etc/bash_completion ]; then
|
. /etc/bash_completion
|
||||||
. /etc/bash_completion
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
|
|
||||||
# enable extra completion scripts
|
|
||||||
if [ -f /etc/bash_completion ]; then
|
|
||||||
. /etc/bash_completion
|
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
21
.profile
21
.profile
|
|
@ -5,7 +5,6 @@ export PAGER=less
|
||||||
export BROWSER=/usr/bin/firefox
|
export BROWSER=/usr/bin/firefox
|
||||||
|
|
||||||
CONTAINER_OR_VM=false
|
CONTAINER_OR_VM=false
|
||||||
SSH_ENV="$HOME/.ssh/environment"
|
|
||||||
|
|
||||||
if [ -z "$(which systemd-detect-virt)" ] || [ "$(systemd-detect-virt)" != "none" ]; then
|
if [ -z "$(which systemd-detect-virt)" ] || [ "$(systemd-detect-virt)" != "none" ]; then
|
||||||
CONTAINER_OR_VM=true
|
CONTAINER_OR_VM=true
|
||||||
|
|
@ -13,26 +12,6 @@ fi
|
||||||
|
|
||||||
export CONTAINER_OR_VM
|
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 running bash
|
||||||
if [ -n "$BASH_VERSION" ]; then
|
if [ -n "$BASH_VERSION" ]; then
|
||||||
# include .bashrc if it exists
|
# include .bashrc if it exists
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue