Skip to content

Instantly share code, notes, and snippets.

@fxn
Created January 9, 2010 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fxn/272941 to your computer and use it in GitHub Desktop.
Save fxn/272941 to your computer and use it in GitHub Desktop.
bash stuff common to different computers
# ls(1)
alias ls='ls -F'
alias ll='ls -lh'
alias la='ls -lhA'
# Rails commands
alias ss='script/server'
alias sc='script/console'
alias sr='script/runner'
alias sa='script/about'
alias sg='script/generate'
# prompt, see http://tldp.org/HOWTO/Bash-Prompt-HOWTO/bash-prompt-escape-sequences.html
PS1='\u@\H:\W ➔ '
# ack(1) options thought for the kind of searches I normally do in a Rails project
# to include say public use --noignore-dir=public, to ignore these settings altogether use --noenv
export ACK_OPTIONS='-a --follow --ignore-dir=log --ignore-dir=vendor --ignore-dir=public --ignore-dir=script --ignore-dir=db'
# less(1)
export LESS='-R -g -i'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment