Skip to content

Instantly share code, notes, and snippets.

View dherault's full-sized avatar
🔥
Creating

David Hérault dherault

🔥
Creating
View GitHub Profile
function simon(n = 4, start = 0) {
if (n < 0) {
throw new Error('1st input number is too low')
}
if (start < 0) {
throw new Error('2nd input number is too low')
}
const colors = [
'red',
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
#!/bin/sh
[ -z "$1" ] && echo "No argument supplied" && exit 1
git add . -A
git commit -m "$*"