Browse Source

Add first pass bash work

master
Taylor Bockman 5 years ago
parent
commit
0dd124cf5b
  1. 12
      dotfiles/bash_profile
  2. 14
      dotfiles/bashrc

12
dotfiles/bash_profile

@ -0,0 +1,12 @@
[[ -r ~/.bashrc ]] && . ~/.bashrc
echo ".bashrc loaded"
# Store private information (exports, keys, etc) in .bash_private.
[[ -r ~/.bash_private ]] && . ~/.bash_private
echo ".bash_private loaded"
export CC=$(which clang)
export CXX=$(which clang++)
if which pyenv-virtualenv-init > /dev/null; then eval "$(pyenv virtualenv-init -)"; fi

14
dotfiles/bashrc

@ -0,0 +1,14 @@
# Use the iterm2 material theme in the root directory of the essentials repository. For linux,
# you will need to source a material theme color scheme for your terminal.
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
# If you ever needed weather...
weather() {
curl wttr.in
}
export PROMPT_DIRTRIM=2
export PS1="\e[1;37m\u@\h\e[m: \e[1;34m\w\e[m \e[1;32m\[$(parse_git_branch)\]\e[m> "
Loading…
Cancel
Save