2013-01-19 17:49:34 +01:00
|
|
|
# If not running interactively, don't do anything
|
|
|
|
[ -z "$PS1" ] && return
|
|
|
|
|
|
|
|
# check the window size after each command and, if necessary,
|
|
|
|
# update the values of LINES and COLUMNS.
|
|
|
|
shopt -s checkwinsize
|
|
|
|
|
|
|
|
# If set, the pattern "**" used in a pathname expansion context will
|
|
|
|
# match all files and zero or more directories and subdirectories.
|
|
|
|
shopt -s globstar
|
|
|
|
|
2014-06-20 16:13:16 +02:00
|
|
|
# append to the history file, don't overwrite it
|
|
|
|
shopt -s histappend
|
|
|
|
|
2021-08-26 10:40:51 +02:00
|
|
|
# Auto "cd" when entering just a path
|
|
|
|
shopt -s autocd
|
|
|
|
|
2014-06-20 16:13:16 +02:00
|
|
|
# don't put duplicate lines or lines starting with space in the history.
|
|
|
|
# See bash(1) for more options
|
2021-08-26 10:35:41 +02:00
|
|
|
HISTCONTROL=ignorespace:ignoredups:erasedups
|
2014-06-20 16:13:16 +02:00
|
|
|
|
|
|
|
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
|
|
|
HISTSIZE=99999999
|
|
|
|
HISTFILESIZE=99999999
|
2013-01-19 17:49:34 +01:00
|
|
|
|
2021-08-26 10:40:51 +02:00
|
|
|
HOSTFILE=~/.hosts
|
2020-04-20 21:43:40 +02:00
|
|
|
|
2014-12-30 23:21:51 +01:00
|
|
|
# make less more friendly for non-text input files, see lesspipe(1)
|
|
|
|
if [ -x /usr/bin/lesspipe ]; then eval "$(lesspipe)"; fi
|
|
|
|
|
2016-02-20 12:13:03 +01:00
|
|
|
# Homeshick
|
2015-07-27 22:40:45 +02:00
|
|
|
source ~/.homesick/repos/homeshick/homeshick.sh
|
2016-04-05 19:57:14 +02:00
|
|
|
|
2021-08-26 10:35:41 +02:00
|
|
|
source ~/.bash_env
|
|
|
|
source ~/.bash_prompt
|
|
|
|
source ~/.bash_aliases
|
|
|
|
source ~/.bash_complete
|
|
|
|
|
|
|
|
# Run after .bash_prompt
|
|
|
|
PROMPT_COMMAND="${PROMPT_COMMAND}; history -a; history -c; history -r"
|