Skip to content

Instantly share code, notes, and snippets.

parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/'
}
export PS1="\[\033[32m\]\u\[\033[00m\]@\[\033[35m\]\h\[\033[00m\] \W\[\033[32m\]\$(parse_git_branch)\[\033[00m\] $ "
version: '3.4'
services:
samba:
image: dperson/samba
networks:
- default
tmpfs:
- /tmp
restart: unless-stopped