Skip to content

Instantly share code, notes, and snippets.

View romiguelangel's full-sized avatar

Miguel Ángel romiguelangel

View GitHub Profile
#!/bin/bash
COLOR_DEFAULT='\033[0m'
COLOR_SUCCESS='\033[0;32m'
COLOR_WARNING='\033[1;33m'
COLOR_ERROR='\033[0;31m'
ZERO_VALUES=($(seq 1 1 9)) # Array with values from 1 to 9
# Include "0" value prefix in the first ten values 01, 02, ...
getPrefix () {
if [[ "${ZERO_VALUES[@]}" =~ "${1}" ]]; then
# Symfony2
app/bootstrap.php.cache
app/bootstrap_cache.php.cache
app/config/parameters.ini
app/config/parameters.yml
app/cache/*
app/logs/*
bin/*
build/*
vendor/*
<!-- sass highlight comment config -->
<dict>
<key>match</key>
<string>((^\ \*)|(\/\*))(.*)$</string>
<key>name</key>
<string>comment.block.sass</string>
</dict>
# Linux terminal prompt colors (.bashrc)
PS1="\n\[$(tput bold)\]\[$(tput setaf 2)\]\u@\h \[$(tput setaf 3)\]\w\n\[$(tput setaf 7)\]\\$\[$(tput sgr0)\]"
# Mac, windows prompt colors
PS1='\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
[user]
name = user
email = user@gmail.com
[color]
ui = true
[color "status"]
added = cyan
untracked = yellow