Skip to content

Instantly share code, notes, and snippets.

@jacekd
Created July 20, 2012 19:35
Show Gist options
  • Save jacekd/3152755 to your computer and use it in GitHub Desktop.
Save jacekd/3152755 to your computer and use it in GitHub Desktop.
.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
#-------------------------------------------------------------
# Source global definitions (if any)
#-------------------------------------------------------------
if [ -f /etc/bashrc ]; then
. /etc/bashrc # --> Read /etc/bashrc, if present.
fi
#-------------------------------------------------------------
# Some settings
#-------------------------------------------------------------
ulimit -S -c 0 # Don't want any coredumps.
#set -o xtrace # Useful for debuging.
# Enable options:
shopt -s cdspell
shopt -s checkwinsize
shopt -s sourcepath
shopt -s cmdhist
#export PATH="$PATH:/Applications/MAMP/bin:/Applications/MAMP/Library/bin"
export PATH="/usr/local/mysql/bin:$PATH"
# Disable options:
shopt -u mailwarn
umask 022
#-------------------------------------------------------------
# Some settings
#-------------------------------------------------------------
PS1="\e[0;32m\! \W \e[0;34m:: \e[m "
# You may uncomment the following lines if you want `ls' to be colorized:
export LS_OPTIONS='-pG'
alias ll='ls $LS_OPTIONS -l'
alias l='ls $LS_OPTIONS'
alias ls='ls $LS_OPTIONS'
alias s='cd ..'
export GREP_OPTIONS="--color -n"
function .. (){
local arg=${1:-1};
local dir=""
while [ $arg -gt 0 ]; do
dir="../$dir"
arg=$(($arg - 1));
done
cd $dir >&/dev/null
}
# Set vi mode
set -o vi
# Laravel generator from
# https://github.com/JeffreyWay/Laravel-Generator
alias g:c="php artisan generate:controller"
alias g:m="php artisan generate:model"
alias g:mig="php artisan generate:migration"
alias g:v="php artisan generate:view"
alias g:r="php artisan generate:resource"
alias g:a="php artisan generate:assets"
export PATH="/opt/local/bin/:${PATH}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment