Move internal shell variables and settings to dedicated file
This commit is contained in:
parent
b7c91d6522
commit
a28908640e
24
bash/bashrc
24
bash/bashrc
|
@ -25,27 +25,9 @@ if [ "$(tty)" == '/dev/tty1' ] && [ ! "$SSH_TTY" ]; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# don't put duplicate lines or lines starting with space in the history.
|
# Shell configuration (history, functionality, etc.)
|
||||||
shopt -s histappend
|
if [ -e ${HOME}/.dotfiles/bash/shell_config ]; then
|
||||||
HISTCONTROL=ignoreboth
|
source ${HOME}/.dotfiles/bash/shell_config ]; then
|
||||||
HISTFILE=${HOME}/.spool/bash_history
|
|
||||||
|
|
||||||
# append to the history file, don't overwrite it
|
|
||||||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
|
||||||
HISTSIZE=500000
|
|
||||||
HISTFILESIZE=1000000
|
|
||||||
|
|
||||||
# check the window size after each command and, if necessary,
|
|
||||||
# update the values of LINES and COLUMNS.
|
|
||||||
shopt -s checkwinsize
|
|
||||||
|
|
||||||
# enable programmable completion features
|
|
||||||
if ! shopt -oq posix; then
|
|
||||||
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
|
||||||
. /usr/share/bash-completion/bash_completion
|
|
||||||
elif [ -f /etc/bash_completion ]; then
|
|
||||||
. /etc/bash_completion
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $TERM_TITLE ]]; then
|
if [[ -z $TERM_TITLE ]]; then
|
||||||
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# don't put duplicate lines or lines starting with space in the history.
|
||||||
|
shopt -s histappend
|
||||||
|
HISTCONTROL=ignoreboth
|
||||||
|
HISTFILE=${HOME}/.spool/bash_history
|
||||||
|
|
||||||
|
# append to the history file, don't overwrite it
|
||||||
|
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
||||||
|
HISTSIZE=500000
|
||||||
|
HISTFILESIZE=1000000
|
||||||
|
|
||||||
|
# check the window size after each command and, if necessary,
|
||||||
|
# update the values of LINES and COLUMNS.
|
||||||
|
shopt -s checkwinsize
|
||||||
|
|
||||||
|
# enable programmable completion features
|
||||||
|
if ! shopt -oq posix; then
|
||||||
|
if [ -f /usr/share/bash-completion/bash_completion ]; then
|
||||||
|
. /usr/share/bash-completion/bash_completion
|
||||||
|
elif [ -f /etc/bash_completion ]; then
|
||||||
|
. /etc/bash_completion
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue