|
|
@ -2,12 +2,18 @@
|
|
|
|
[ -z "$PS1" ] && return
|
|
|
|
[ -z "$PS1" ] && return
|
|
|
|
|
|
|
|
|
|
|
|
function source-file {
|
|
|
|
function source-file {
|
|
|
|
|
|
|
|
local file
|
|
|
|
file="$1"
|
|
|
|
file="$1"
|
|
|
|
if [[ -f "$file" ]]; then
|
|
|
|
if [[ -f "$file" ]]; then
|
|
|
|
|
|
|
|
# shellcheck disable=SC1090
|
|
|
|
source "$file"
|
|
|
|
source "$file"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [[ ! "${BASH_VERSION}" = "3.2*" ]]; then
|
|
|
|
|
|
|
|
shopt -s autocd
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
source-file /etc/bash_completion
|
|
|
|
source-file /etc/bash_completion
|
|
|
|
source-file ~/.bash/environment
|
|
|
|
source-file ~/.bash/environment
|
|
|
|
source-file ~/.bash/colors
|
|
|
|
source-file ~/.bash/colors
|
|
|
@ -15,7 +21,7 @@ source-file ~/.bash/aliases
|
|
|
|
source-file ~/.bash/functions
|
|
|
|
source-file ~/.bash/functions
|
|
|
|
source-file ~/.bash/path
|
|
|
|
source-file ~/.bash/path
|
|
|
|
source-file ~/.bash/prompt
|
|
|
|
source-file ~/.bash/prompt
|
|
|
|
source-file ~/.bash/ensure-ssh-agent
|
|
|
|
#source-file ~/.bash/ensure-ssh-agent
|
|
|
|
source-file ~/.bash/completion
|
|
|
|
source-file ~/.bash/completion
|
|
|
|
source-file ~/opt/bash/env
|
|
|
|
source-file ~/opt/bash/env
|
|
|
|
source-file ~/go/bin
|
|
|
|
source-file ~/go/bin
|
|
|
|