This repository has been archived on 2021-04-14. You can view files and clone it, but cannot push or open issues/pull-requests.
bare-dotfiles/.bashrc

26 lines
908 B
Bash
Raw Normal View History

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
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() {
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