Skip to content

Instantly share code, notes, and snippets.

Avatar
🔥
Creating

David Hérault dherault

🔥
Creating
View GitHub Profile
View .bashrc
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1) /'
}
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;33m\]\u\[\033[31m\]@\[\033[01;33m\]\h \[\033[01;36m$
else
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
View quick_commit.sh
#!/bin/sh
[ -z "$1" ] && echo "No argument supplied" && exit 1
git add . -A
git commit -m "$*"
You can’t perform that action at this time.