Skip to content

Instantly share code, notes, and snippets.

View GabrielAnca's full-sized avatar

Gabriel Anca GabrielAnca

  • Datadog
  • Madrid
  • 15:29 (UTC +01:00)
View GitHub Profile

Keybase proof

I hereby claim:

  • I am gabrielanca on github.
  • I am gabrielanca (https://keybase.io/gabrielanca) on keybase.
  • I have a public key ASA20jsa13LZrzgHM4mxkR4Snu4TvVtolF8ONlfMVuMs_wo

To claim this, I am signing this object:

@GabrielAnca
GabrielAnca / .bash_ps1
Created May 28, 2017 15:21
Personalized PS1 with git status detection and warning on errors
#!/bin/bash
# Bash colors
DEFAULT_PS1_COLOR="\[\033[01;38;5;33m\]"
PS1_DATE="\[\033[01;38;5;242m\]\t$DEFAULT_PS1_COLOR"
PS1_HOST_STRING="\[\033[01;38;5;39m\]\u@\h$DEFAULT_PS1_COLOR"
PS1_PATH="$DEFAULT_PS1_COLOR[\w]$DEFAULT_PS1_COLOR"
PS1_EXEC_LINE="$DEFAULT_PS1_COLOR\$ $PS1_COLOR_RESET"
PS1_COLOR_RESET="\[\033[00;38;5;255m\]"