Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [[ -s `brew --prefix autojump`/etc/autojump.sh ]] && . `brew --prefix autojump`/etc/autojump.sh
- [[ -s `brew --prefix git`/etc/bash_completion.d/git-prompt.sh ]] && . `brew --prefix git`/etc/bash_completion.d/git-prompt.sh
- function parse_git_branch {
- git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ [\1]/'
- }
- function prompt {
- # 色は気分で変えたいかもしれないので変す宣言しておく
- local BLUE="\[\e[1;34m\]"
- local RED="\[\e[1;31m\]"
- local GREEN="\[\e[1;32m\]"
- local WHITE="\[\e[00m\]"
- local GRAY="\[\e[1;37m\]"
- case $TERM in
- xterm*) TITLEBAR='\[\e]0;\W\007\]';;
- *) TITLEBAR="";;
- esac
- local BASE="\u@\h"
- PS1="${TITLEBAR}${GREEN}${BASE}${WHITE}:${BLUE}\W${GREEN}\$(parse_git_branch)${BLUE}\$${WHITE} "
- }
- prompt
- # Google Cloud SDK
- source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc'
- source '/usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/completion.bash.inc'
- export PATH="/usr/local/sbin:$PATH"
- export EDITOR=vim
- # direnv
- eval "$(direnv hook bash)"
- # anyenv
- export PATH="$HOME/.anyenv/bin:$PATH"
- eval "$(anyenv init -)"
- test -r ~/.bashrc && . ~/.bashrc
Add Comment
Please, Sign In to add comment