Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ranjitiyer/4fdfaa1ec3a6a4c6cc969218be902da9 to your computer and use it in GitHub Desktop.
Save ranjitiyer/4fdfaa1ec3a6a4c6cc969218be902da9 to your computer and use it in GitHub Desktop.

Revisions

  1. ranjitiyer created this gist May 23, 2018.
    4 changes: 4 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    export PS1="\@ \w $(if [[ -e .gitignore ]]; then git branch | head -n 1 | awk '{print $2}'; fi) > "

    Prints time in am/pm, the current working directory and the checked out gitbranch if pwd is a git repo
    01:39 PM ~/work/emr/sparkmagic jupyter >