Created
May 21, 2018 08:18
-
-
Save claudio-scandura/e9bb512a0c158f3ad0e52fd6be768a37 to your computer and use it in GitHub Desktop.
Sample bash profile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shopt -s dotglob # ls dir/* includes dotfiles | |
export GIT_EDITOR=vim | |
# Shell prompt | |
#if [ -f fancy_git_prompt.sh ]; then | |
#. fancy_git_prompt.sh | |
#fi | |
#GIT | |
GIT_PS1_SHOWDIRTYSTATE=true | |
GIT_PS1_SHOWUPSTREAM=true | |
[ -f /usr/local/etc/bash_completion ] && . /usr/local/etc/bash_completion | |
export PROMPT_COMMAND='echo -ne "\\033]0;${PWD##*/} [$(__git_ps1 %s)]\\007"' | |
PS1='\[\033[0;34m\][\[\033[0;32m\]\A\[\033[0;34m\]]\[\033[01m\]: \[\033[0;36m\]\W`__git_ps1 " \[\033[0;34m\](\[\033[1;33m\]%s\[\033[0;34m\])"`\[\033[00m\]\[\033[0;37m\] \[\033[0;34m\]\$\[\033[0;37m\] ' | |
alias cleanMongo='rm -fr /usr/local/var/mongodb/*' | |
alias sw='./sbtw' | |
alias gw='./gradlew' | |
alias checkstyle='gradle checkstyleMain checkstyleTest checkstyleSystemTest' | |
alias docker-cleanup='docker rm -fv $(docker ps -a -q -f status=exited)' | |
alias docker-killall='docker rm -fv $(docker ps -qa)' | |
alias docker-cleanall='docker run --rm -v /var/run/docker.sock:/var/run/docker.sock -v /etc:/etc spotify/docker-gc' | |
alias git-clean-branches='git branch --merged | grep -v -e master -e "*" | xargs git branch -d' | |
eval "$(thefuck --alias)" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment