This repository has been archived on 2021-04-14. You can view files and clone it, but cannot push or open issues/pull-requests.
2018-07-17 09:48:02 -04:00
|
|
|
test -f /etc/bashrc && . /etc/bashrc || true
|
2020-05-27 11:24:10 -04:00
|
|
|
test -f /etc/bash.bashrc && . /etc/bash.bashrc || true
|
2018-11-05 16:09:02 -05:00
|
|
|
test -f /etc/bash_completion && . /etc/bash_completion || true
|
2020-01-06 11:46:03 -05:00
|
|
|
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
|
2018-07-17 17:36:50 -04:00
|
|
|
test -f $HOME/.bash_aliases && . $HOME/.bash_aliases || true
|
2020-05-27 11:24:10 -04:00
|
|
|
test -f $HOME/.cargo/env && . $HOME/.cargo/env || true
|
2018-07-17 09:48:02 -04:00
|
|
|
|
|
|
|
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() {
|
2018-07-23 16:17:03 -04:00
|
|
|
PS1="$(powerline-go -error $?)"
|
2018-07-17 09:48:02 -04:00
|
|
|
}
|
2019-01-18 11:35:20 -05:00
|
|
|
if [[ $(which powerline-go 2>/dev/null) && "$TERM" != "linux" && "$TERM_PROGRAM" != "vscode" ]]; then
|
2018-07-17 09:48:02 -04:00
|
|
|
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
|