Skip to content

Instantly share code, notes, and snippets.

@danielb2
Created August 27, 2011 17:00
Show Gist options
  • Save danielb2/1175606 to your computer and use it in GitHub Desktop.
Save danielb2/1175606 to your computer and use it in GitHub Desktop.
ralias "irb irb -r 'irb/completion'"
ralias "grep grep --color=always"
ralias "urls vim #{ENV['HOME']}/misc/urls"
ralias "bos vim #{ENV['HOME']}/misc/bos"
ralias "contacts vim #{ENV['HOME']}/misc/contacts"
ralias 'findd find . | grep -i'
ralias 'phpi rlwrap -a -- php -a'
ralias 'ls ls -Gh'
#ralias 'pss ps wuax | grep -i'
#ralias 'ls gls -h --color'
#ralias 'l gls -lh --color'
#ralias 'll gls -lah --color'
#ralias 'la gls -ah --color'
ralias 'untar tar xvfz'
ENV['PATH'] = '/Users/daniel/scripts:/Users/daniel/local/bin:/opt/local/bin/:/usr/local/sbin:/usr/sbin:/sbin:/usr/bin:/bin:/usr/local/bin:/Users/daniel/local/freebsd/bin/'
ENV['LS_COLORS'] ="*.tbz=01;31:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.bz2=01;31:*.rpm=01;31:*.deb=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.mpg=01;37:*.avi=01;37:*.mov=01;37:"
ENV['PAGER'] = 'col -b | vim -c "map q :q!<CR>" -R -'
#ENV['PR1'] = "[%u@%h]--(%t)\n\r[%w]%$ "
#str = "[%Cc%u@%h%CC]--(%Cc%t%CC)\n[%Cc%w%CC]$ "
class Numeric
def days;
self * 60 * 60 * 24
end
def hours
self * 60 * 60
end
end
def mdx(file="deb")
system("mudix .mudix/#{file}")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment