Created
August 23, 2018 18:54
-
-
Save NiltonMorais/5bdd244ef96ab030c922020655f8b55c to your computer and use it in GitHub Desktop.
Bash com variáveis e opção de mostrar branch no terminal
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
| export PATH="/usr/local/opt/php@7.1/bin:$PATH" | |
| export PATH="/usr/local/opt/php@7.1/sbin:$PATH" | |
| export PATH="$PATH:$HOME/.composer/vendor/bin" | |
| export PS1="\[\033[38m\]\u\[\033[32m\] \w \[\033[31m\]\`git \\ | |
| branch 2>/dev/null | grep \"^\*\" | \\ | |
| sed -E \"s/\*\ (.*)/ \(\1\)/\"\`\[\033[37m\]$\[\033[00m\] " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment