26 lines
908 B
Bash
26 lines
908 B
Bash
test -f /etc/bashrc && . /etc/bashrc || true
|
|
test -f /etc/bash.bashrc && . /etc/bash.bashrc || true
|
|
test -f /etc/bash_completion && . /etc/bash_completion || true
|
|
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
|
|
test -f $HOME/.bash_aliases && . $HOME/.bash_aliases || true
|
|
test -f $HOME/.cargo/env && . $HOME/.cargo/env || true
|
|
|
|
export GIT_MERGE_AUTOEDIT=no
|
|
export EDITOR=vim
|
|
export PATH=$PATH:$HOME/.local/bin:$HOME/bin
|
|
|
|
HISTSIZE=5000
|
|
HISTFILESIZE=10000
|
|
HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S "
|
|
|
|
for k in $HOME/bin/*.bash ; do . $k ; done
|
|
|
|
function _update_ps1() {
|
|
PS1="$(powerline-go -error $?)"
|
|
}
|
|
if [[ $(which powerline-go 2>/dev/null) && "$TERM" != "linux" && "$TERM_PROGRAM" != "vscode" ]]; then
|
|
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
|
|
else
|
|
PS1='[\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\w$(__git_ps1 " (%s)")\[\033[00m\]]\$ '
|
|
fi
|