40 lines
1.1 KiB
Bash
40 lines
1.1 KiB
Bash
# 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
|
|
|
|
# append to the history file, don't overwrite it
|
|
shopt -s histappend
|
|
|
|
# Auto "cd" when entering just a path
|
|
shopt -s autocd
|
|
|
|
# don't put duplicate lines or lines starting with space in the history.
|
|
# See bash(1) for more options
|
|
HISTCONTROL=ignorespace:ignoredups:erasedups
|
|
|
|
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
|
HISTSIZE=99999999
|
|
HISTFILESIZE=99999999
|
|
|
|
HOSTFILE=~/.hosts
|
|
|
|
# make less more friendly for non-text input files, see lesspipe(1)
|
|
if [ -x /usr/bin/lesspipe ]; then eval "$(lesspipe)"; fi
|
|
|
|
# Homeshick
|
|
source ~/.homesick/repos/homeshick/homeshick.sh
|
|
|
|
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"
|