Skip to content

Instantly share code, notes, and snippets.

@bartcerneels
bartcerneels / git-ps1.env
Last active July 10, 2019 09:40
My PS1 settings including git prompt
# wget https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh
source ~/.git-prompt.sh
GIT_PS1_SHOWDIRTYSTATE=1
GIT_PS1_SHOWUNTRACKEDFILES=1
GIT_PS1_SHOWUPSTREAM="auto"
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]$(__git_ps1)\n\$ '
@bartcerneels
bartcerneels / git-ignore-files.sh
Created March 20, 2018 09:05
Exclude current untracked files from repo (not .gitignore)
!/bin/bash
git status --porcelain | grep ?? | cut -d\ -f2 >> `git rev-parse --show-toplevel`/.git/info/exclude
@bartcerneels
bartcerneels / keybase.md
Created August 6, 2016 12:38
keybase proof

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: