Permalink
Browse files

A few files I've quickly checked for sanity

  • Loading branch information...
1 parent 34cf28b commit aef0fc6ec2cc9aa72a28b44065186bbcac0ad2a1 @richo richo committed Jun 21, 2011
Showing with 1,140 additions and 0 deletions.
  1. +26 −0 colordiffrc
  2. +55 −0 colorsvnrc
  3. +38 −0 gitconfig
  4. +17 −0 gvimrc
  5. +204 −0 profile
  6. +421 −0 vimrc
  7. +379 −0 zshrc
View
@@ -0,0 +1,26 @@
+# Example colordiffrc file for dark backgrounds
+#
+# Set banner=no to suppress authorship info at top of
+# colordiff output
+banner=no
+# By default, when colordiff output is being redirected
+# to a file, it detects this and does not colour-highlight
+# To make the patch file *include* colours, change the option
+# below to 'yes'
+color_patches=no
+#
+# available colours are: white, yellow, green, blue,
+# cyan, red, magenta, black,
+# darkwhite, darkyellow, darkgreen,
+# darkblue, darkcyan, darkred,
+# darkmagenta, darkblack
+#
+# Can also specify 'none', 'normal' or 'off' which are all
+# aliases for the same thing, namely "don't colour highlight
+# this, use the default output colour"
+#
+plain=off
+newtext=green
+oldtext=red
+diffstuff=magenta
+cvsstuff=green
View
@@ -0,0 +1,55 @@
+# Sample colorsvnrc
+
+# These are the defaults
+
+# path to the svn binary
+#svn: /usr/bin/svn
+
+# Don't do color if our terminal type ($TERM) is one of these.
+# (List all terminal types on one line, seperated by whitespace.)
+# Remark: obsolete, only for backward capability
+nocolor: dumb other test
+
+# Do color if our terminal type ($TERM) is one of these.
+# (List all terminal types on one line, seperated by whitespace.)
+colortty: linux console con132x25 con132x30 con132x43 con132x60 con80x25 con80x28 con80x30 con80x43 con80x50 con80x60 cons25 xterm rxvt xterm-color color-xterm vt100 dtterm color_xterm ansi screen screen.linux kon kterm gnome konsole screen256 rxvt-unicode rxvt-256color
+
+
+# The following groups of attributes may be combined for a given color:
+#
+# clear black on_black
+# reset red on_red
+# bold green on_green
+# underline yellow on_yellow
+# underscore blue on_blue
+# blink magenta on_magenta
+# reverse cyan on_cyan
+# concealed white on_white
+
+# colors for different types of status messages
+
+P: reset
+U: green
+C: red
+M: green
+G: bold blue
+A: cyan
+R: cyan
+D: red
+I: bold
+?: reset
+!: red
+~: red
+
+# use bold font for directory
+bolddir: true
+
+# this is for server messages
+server: cyan
+
+# this is for warnings
+warning: red
+
+# only chosen commands
+# available commands: add blame cat checkout cleanup copy delete diff export info list log mkdir move propdel propget proplist propset status update
+commands: add checkout copy delete export mkdir move propdel propget status update diff
View
@@ -0,0 +1,38 @@
+[user]
+ name = richo
+ email = richo@psych0tik.net
+[core]
+ excludesfile = /home/richo/.gitignore
+[color]
+ branch = auto
+ diff = auto
+ status = auto
+
+[color "branch"]
+ current = yellow reverse
+ local = yellow
+ remote = green
+
+[color "diff"]
+ meta = yellow bold
+ frag = magenta bold
+ old = red bold
+ new = green bold
+
+[color "status"]
+ added = yellow
+ changed = green
+ untracked = cyan
+[alias]
+ ci = commit
+ co = checkout
+ st = status
+ df = diff
+ dc = diff --cached
+ cp = cherry-pick
+ ffo = merge --ff-only @{u}
+ ffr = rebase origin/@{u}
+ rpull = pull --rebase
+ rb = rebase origin/@{u}
+ graph = log --pretty=format:\"%Cred%h%Creset | %s%d %Cgreen[%an]%Creset\" --graph --date=short
+ detach = checkout HEAD^0
View
17 gvimrc
@@ -0,0 +1,17 @@
+color jellybeans
+set guifont=Bitstream\ Vera\ Sans\ Mono\ 8
+":cANSI
+"
+set columns=120
+set lines=40
+
+set guioptions-=r
+set guioptions-=m
+set guioptions-=T
+set guioptions-=L
+set guioptions-=e
+set guioptions+=c
+
+if has("gui_macvim")
+ set transparency=5
+endif
View
204 profile
@@ -0,0 +1,204 @@
+[ $SHLVL -eq 1 -a -z $TERM_PROGRAM ] &&
+ . ~/.init_home
+
+export PATH=$HOME/bin:$PATH
+if [ $SHLVL -eq 1 ]; then
+ # Hell, do this once per tty login
+ export CVSROOT=:pserver:richo@domino.ctc:/richo
+ ## XXX Should my path come first? In all likelyhood I want it to take precedence
+ export MAIL=imaps://domino.psych0tik.net
+ export UPSTREAMMAIL=imaps://richo+psych0tik.net@mail.psych0tik.net
+ export KEY=89E72415
+ export EXCUSES_FILE=$HOME/code/storage/excuses
+ export SLEEP_MUSIC="http://radio.psych0tik.net:8000/hax.ogg.m3u"
+ export SLEEP_TIMEOUT=3600
+ export WAKEUP_PATH="dragonforce..."
+ export PYTHONPATH=$HOME/code/python/lib
+ export PGUSER=$USER
+ export MPD_HOST=domino.psych0tik.net
+ export TAGS_LIFETIME=$((60*60*24))
+ export BOOM_SRC=/var/www/boom/branches
+ export bsd_dircolors="ExFxCxDxCxEgEdAbAgAcAd"
+ export SHELL_COLOR=39
+ export SVNVERSION_TIMEOUT=5
+ if [[ -n $SSH_CLIENT ]]; then
+ export IN_SSH=yes
+ fi
+ if [ -f ${HOME}/.termcap ]; then
+ TERMCAP=$(< ${HOME}/.termcap)
+ export TERMCAP
+ fi
+
+ for i in enlightenment_start openbox-session; do
+ # ^ These must be in reverse order because the last assignment will persist
+ which $i > /dev/null && export RICHOWM=$i
+ done
+
+ for i in firefox iceweasel uzbl vimprobable2; do
+ # ^ These must be in reverse order because the last assignment will persist
+ which $i > /dev/null && export BROWSER=$i
+ done
+
+ for i in vim vi nano ed; do
+ # ^ unlike the above decs, stop when we succeed
+ if which $i > /dev/null; then
+ export EDITOR=$(which $i)
+ export VISUAL=$(which $i)
+ break
+ fi
+ done
+ mesg n
+ case `uname -s` in
+ "FreeBSD")
+ export PLATFORM="FREEBSD"
+ export LSCOLORS=$bsd_dircolors
+ export BROKEN_MULTIBYTE="yes"
+ sHost=`hostname -s`
+ ;;
+ "Linux")
+ export PLATFORM="LINUX"
+ sHost=`hostname`
+ ;;
+ "OpenBSD")
+ export PLATFORM="OPENBSD"
+ export LSCOLORS=$bsd_dircolors
+ export BROKEN_MULTIBYTE="yes"
+ sHost=`hostname -s`
+ ;;
+ "Darwin")
+ export PLATFORM="DARWIN"
+ export LSCOLORS=$bsd_dircolors
+ sHost=`hostname -s`
+ ;;
+ "SunOS")
+ export PLATFORM="SOLARIS"
+ sHost=`hostname`
+ ;;
+ *)
+ export PLATFORM="UNKNOWN"
+ sHost=`hostname`
+ ;;
+ esac
+fi
+
+rTITLE="$(basename $SHELL) $(tty)"
+if [[ -n $IN_SSH ]]; then
+ rTITLE="${sHost}: $rTITLE"
+fi
+export rTITLE
+
+export sTITLE="$(basename $SHELL)"
+alias RR="restart_rails"
+alias WATCHR='ruby watchr.rb | grep -Ei "FAIL|ERROR" | grep -v "fail: 0, error: 0"'
+alias be="bundle exec"
+alias ducks='du -cks * | sort -rn | head -11'
+alias ivlc="vlc -I ncurses"
+alias loneshell="setopt nosharehistory"
+alias lstree="ls -R | grep \":$\" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'"
+alias lynx="lynx -accept_all_cookies"
+alias sdig="dig +short"
+alias ssl="openssl s_client -connect"
+alias svn_add_empty="svn add --depth empty"
+alias wb=whichboom
+alias xcl='xclip'
+alias xcp='xclip -selection clipboard'
+if which colorsvn > /dev/null 2>&1; then
+ alias svn="colorsvn"
+fi
+# This should really be in some work specific include?
+# Debating the worthiness of a ` include .profile.$(hostname)`
+function cdboom() {
+ cd $BOOM_SRC/iteration$1/php
+}
+function svnrecommit() {
+ svn commit -F $1 && rm $1
+}
+# Defaults
+export sed_r=-r
+# Platform specific hax
+case $PLATFORM in
+ "FREEBSD")
+ alias ls='ls -G'
+ alias ctags=exctags
+ alias grep="grep --colour"
+ function vol() { mixer vol $1; }
+ ;;
+ "LINUX")
+ alias ls='ls --color=auto'
+ alias grep="grep --colour" ;;
+ "OPENBSD")
+ if which colorls > /dev/null 2>&1; then
+ alias ls="/usr/local/bin/colorls -G"
+ fi
+ function vol() { mixerctl outputs.master=$1,$1; }
+ ;;
+ "DARWIN")
+ alias ls='ls -G'
+ export sed_r=-E
+ ;;
+esac
+
+# Hack for screen
+if [ -z $INSCREEN ] && [ -n $IN_SSH ]; then
+ ZSH_TIME=" %T"
+else
+ ZSH_TIME=""
+fi
+
+# Stole this mofo from teh samurai
+function wiki()
+{
+ dig +short txt $(echo $@ | sed -e 's/ /_/g').wp.dg.cx
+}
+#</Stoled>
+
+
+
+# XXX TEMP
+# Is broked atm..
+if [ "$TERM" = "rxvt-unicode-256color" ]; then
+ export TERM="rxvt-256color"
+fi
+
+#if [ "$TERM" = "screen" -a -n "$tmuxTERM" ]; then
+# export TERM=$tmuxTERM
+#fi
+
+if [ "$TERM" = "rxvt-256color" -a $(hostname) = "richh-desktop" ]; then
+ #export TERM="rxvt-unicode"
+ alias ssh="TERM=rxvt-unicode ssh"
+fi
+
+# Do we want 256 colors in vim?
+if echo $TERM | grep 256 > /dev/null; then
+ export VIM256=true
+fi
+
+# Do we have clientserver support?
+if vim --version | grep "+clientserver" > /dev/null 2>&1; then
+ # Active some alias which sets --servername to something recognisable
+ # Do a $DISPLAY && because wihtout X it doesn't work anyway
+ :
+fi
+
+
+if [ "$TERM" = "screen" -a $(hostname) = "solitaire.psych0tik.net" ]; then
+ export VIM256=true
+fi
+if [ "$TERM" = "rxvt-256color" -a $(hostname) = "solitaire.psych0tik.net" ]; then
+ export VIM256=true
+fi
+
+# RVM Hax.
+for _rvm in "$HOME/.rvm/scripts/rvm" "/usr/local/rvm/scripts/rvm"; do
+ if [[ -s "$_rvm" ]]; then
+ # Do rvm initialisy stuff
+ export have_rvm=true
+ source "$_rvm"
+ function cdgems() {
+ cd "$GEM_HOME"
+ }
+ break
+ fi
+done
+source ~/.profile.local
Oops, something went wrong.

0 comments on commit aef0fc6

Please sign in to comment.