Skip to content

Instantly share code, notes, and snippets.

View Shemahmforash's full-sized avatar

Carlos Rosão Shemahmforash

View GitHub Profile
@Shemahmforash
Shemahmforash / .vimrc
Created July 29, 2015 15:12
run pertidy on saving pm files on vim
"run perltidy on saving pm files
:autocmd BufWritePre *.pm :%!perltidy
@Shemahmforash
Shemahmforash / .gitrc
Last active August 29, 2015 14:19 — forked from tung/gist:409780
Git branch information (as well as status comparing with the remote) in bash prompt
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[0;34m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"
WHITE="\[\033[1;37m\]"
LIGHT_GRAY="\[\033[0;37m\]"
COLOR_NONE="\[\e[0m\]"
alias cp='cp -iv' # Preferred 'cp' implementation
alias mv='mv -iv' # Preferred 'mv' implementation
alias mkdir='mkdir -pv' # Preferred 'mkdir' implementation
alias ll='ls -FGlAhp' # Preferred 'ls' implementation
alias less='less -FSRXc' # Preferred 'less' implementation
cd() { builtin cd "$@"; ll; } # Always list directory contents upon 'cd'
alias cd..='cd ../' # Go back 1 directory level (for fast typers)
alias ..='cd ../' # Go back 1 directory level
alias ...='cd ../../' # Go back 2 directory levels
alias .3='cd ../../../' # Go back 3 directory levels
#[user]
#email = shemahmforash@hotmail.com
#name = Carlos Rosão
[core]
editor = vim
[push]
default = current
[alias]