Last active
May 5, 2020 17:28
-
-
Save PeterDKC/c67ba28a93bb1c91f1a20d6ecbe4542a to your computer and use it in GitHub Desktop.
Standard ~/.bash_profile for Laravel dev
This file contains hidden or 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
# https://github.com/jimeh/git-aware-prompt | |
export GITAWAREPROMPT=~/.bash/git-aware-prompt | |
source "${GITAWAREPROMPT}/main.sh" | |
export PS1="\u@\h \W \[\$txtcyn\]\$git_branch\[\$txtred\]\$git_dirty\[\$txtrst\]\$ " | |
# https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion | |
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh" | |
multi() { | |
command="(echo {} && cd {} && "$@" && echo)" | |
echo $command | |
find . -maxdepth 1 -mindepth 1 -type d -exec sh -c "$command" \; | |
} | |
delete-merged() { | |
git branch --merged development | grep -v "\* development" | xargs -n 1 git branch -d | |
} | |
freshen() { | |
git checkout development && git pull | |
} | |
alias art="php artisan" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment