Skip to content

Instantly share code, notes, and snippets.

@NiltonMorais
Created August 23, 2018 18:54
Show Gist options
  • Select an option

  • Save NiltonMorais/5bdd244ef96ab030c922020655f8b55c to your computer and use it in GitHub Desktop.

Select an option

Save NiltonMorais/5bdd244ef96ab030c922020655f8b55c to your computer and use it in GitHub Desktop.
Bash com variáveis e opção de mostrar branch no terminal
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