Commits

Mike Steder committed 82ce67f

Making config files use the .symlink format

  • Participants
  • Parent commits 3d478d1

Comments (0)

Files changed (18)

File bash_profile

-# ~/.bash_profile: executed by bash(1) for login shells.
-# see /usr/share/doc/bash/examples/startup-files for examples.
-# the files are located in the bash-doc package.
-
-# the default umask is set in /etc/login.defs
-#umask 022
-
-# include .bashrc if it exists
-if [ -f ~/.bashrc ]; then
-    . ~/.bashrc
-fi
-

File bashrc

-#-*- mode: sh -*-
-# ~/.bashrc: executed by bash(1) for non-login shells.
-# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
-# for examples
-
-# If not running interactively, don't do anything
-[ -z "$PS1" ] && return
-
-# don't put duplicate lines in the history. See bash(1) for more options
-export HISTCONTROL=ignoredups
-
-# check the window size after each command and, if necessary,
-# update the values of LINES and COLUMNS.
-shopt -s checkwinsize
-
-# make less more friendly for non-text input files, see lesspipe(1)
-[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"
-
-# set variable identifying the chroot you work in (used in the prompt below)
-if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
-    debian_chroot=$(cat /etc/debian_chroot)
-fi
-
-# set a fancy prompt (non-color, unless we know we "want" color)
-case "$TERM" in
-xterm-color)
-    PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\] \[\033[01;34m\]\W\[\033[00m\]\$ '
-    ;;
-*)
-    PS1='${debian_chroot:+($debian_chroot)}\u@\h \W\$ '
-    ;;
-esac
-
-# Comment in the above and uncomment this below for a color prompt
-#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\W\[\033[00m\]\$ '
-
-# If this is an xterm set the title to user@host:dir
-case "$TERM" in
-xterm*|rxvt*)
-    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD/$HOME/~}\007"'
-    ;;
-*)
-    ;;
-esac
-
-# Alias definitions.
-# You may want to put all your additions into a separate file like
-# ~/.bash_aliases, instead of adding them here directly.
-# See /usr/share/doc/bash-doc/examples in the bash-doc package.
-
-#if [ -f ~/.bash_aliases ]; then
-#    . ~/.bash_aliases
-#fi
-
-# enable color support of ls and also add handy aliases
-if [ "$TERM" != "dumb" ]; then
-    alias rm='rm -i'
-    alias mv='mv -i'
-    alias cp='cp -i'
-fi
-
-platform=`uname -s`
-
-if [ "$platform" = "Darwin" ]; then
-   alias ls='ls -GF'
-fi
-
-# some more ls aliases
-alias ll='ls -Gl'
-alias la='ls -GA'
-alias l='ls -GCF'
-
-alias findinpy="find . -name '*.py' | xargs egrep "
-alias svnflakes="svn status | grep '^\M\|^A' | cut -c 8- | xargs pyflakes | uniq"
-alias ducks='du -cks * |sort -rn |head -11'
-alias nox='emacs -nw'
-alias log='svn log --stop-on-copy'
-alias uplog='svn up; svn log --stop-on-copy'
-alias status='svn st | grep -Ev "?*resources"'
-alias conflicts='svn st | grep "^[ ]*C"'
-alias whichpkg='dpkg -S'
-alias tun="ssh -f -N "
-complete -F _ssh tun
-#alias kill=skill
-#alias kill=pkill
-#pgrep - process grep, 'pgrep python' returns the process ids for all running pythons
-#vmstat - current memory details
-#alias tar=pax # pax is an alternative to tar and cpio
-#watch - repeatedly run a command and show you the results
-#netstat
-#lsof
-#ngrep
-#nmap
-#top && ntop
-#httptop
-
-# enable programmable completion features (you don't need to enable
-# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
-# sources /etc/bash.bashrc).
-if [ -f /etc/bash_completion ]; then
-    . /etc/bash_completion
-fi
-
-VIMRUNTIME=/usr/share/vim
-export VIMRUNTIME
-
-SVN_EDITOR=emacs
-export SVN_EDITOR
-EDITOR=emacs
-export EDITOR
-
-# set PATH so it includes user's private bin if it exists
-if [ -d ~/bin ] ; then
-    PATH=~/bin:"${PATH}"
-fi
-
-BREWPATH="/usr/local/bin:/usr/local/sbin:/usr/local/share/python"
-export PATH="${BREWPATH}:${PATH}"
-
-# COMBINATOR:
-#eval `/usr/bin/python ~/UQDS/Divmod/trunk/Combinator/environment.py`
-alias combinator='eval `/usr/bin/python ~/UQDS/Divmod/trunk/Combinator/environment.py`'
-
-# RVM: (like virtualenv for ruby?)
-[[ -s "/Users/steder/.rvm/scripts/rvm" ]] && source "/Users/steder/.rvm/scripts/rvm"  # This loads RVM into a shell session.
-
-# Ruby Brew stuff:
-export PATH=/usr/local/Cellar/ruby/1.9.3-p125/bin:${PATH}
-
-# Cassandra:
-export CASSANDRA_PATH=~/GO/Cassandra/apache-cassandra-1.0.0-rc2/bin
-export PATH="${CASSANDRA_PATH}:${PATH}"
-
-REPO=https://svn.ci.uchicago.edu/svn/koa
-export REPO
-
-# VirtualEnv:
-export WORKON_HOME=$HOME/VirtualEnvs
-
-if [ -e /usr/local/bin/virtualenvwrapper.sh ]; then
-    source /usr/local/bin/virtualenvwrapper.sh
-elif [ -e /usr/local/share/python/virtualenvwrapper.sh ]; then
-	source /usr/local/share/python/virtualenvwrapper.sh
-fi
-
-# EC2
-
-export AWS_KEYPAIR=steder.ci
-
-if [ -e ~/.ec2 ]; then
-    export EC2_CERT=$(/bin/ls ~/.ec2/cert-*.pem)
-    export EC2_PRIVATE_KEY=$(/bin/ls ~/.ec2/pk-*.pem)
-fi
-
-export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home"
-export EC2_AMITOOL_HOME="/usr/local/Cellar/ec2-ami-tools/1.3-45758/jars"
-export EC2_HOME="/usr/local/Cellar/ec2-api-tools/1.4.2.2/jars"
-
-# GO Specific Bash Configuration:
-# this stuff shouldn't get checked in on bitbucket
-if [ -e ~/.gorc ]; then
-    . ~/.gorc
-fi
-
-if [ -e ~/.rackspace ]; then
-    echo "loading credentials from ~/.rackspace"
-    . ~/.rackspace
-fi
-
-if [ -e ~/.aws ]; then
-    echo "loading credentials from ~/.aws"
-    . ~/.aws
-fi
-
-export OPSCODE_USER="steder"

File emacs

-;-*- mode: emacs-lisp -*-
-;;; Mike Steder <steder@gmail.com>
-;;; Emacs configuration
-;; Add my local ~/emacs to the load-path
-;(eval-after-load "tramp"
-;  '(debug))
-
-(add-to-list 'load-path "~/emacs.d")
-(add-to-list 'load-path "~/etc/emacs.d")
-(add-to-list 'load-path "~/etc/emacs.d/color-theme-6.6.0")
-(add-to-list 'load-path "~/etc/emacs.d/CsharpToolsForEmacs")
-(add-to-list 'load-path "~/etc/emacs.d/sellout-emacs-color-theme-solarized")
-(add-to-list 'load-path "~/etc/emacs.d/ocaml")
-
-;; Emacs config menus will write customizations
-;; to this file:
-(setq custom-file "~/etc/emacs.d/custom.el")
-(load "platform.el")
-
-
-(load "special_files.el")
-(load "look_and_feel.el")
-(load "flymake-cursor.el")
-(load "msido.el")
-;; icicles is and imemnse confusing, perhaps I'll figure it out
-;; another time:
-;(load "msicicles.el")
-
-(load "buffers.el")
-(load "mouse.el")
-(load "keybindings.el")
-(load "msproject.el")
-(load "mstest.el")
-(load "misc.el")
-;(load "menu.el")
-(load "remote.el")
-(load "snippets.el")
-(load "escreen.el")
-(escreen-install)
-
-;; Language Support:
-(load "csharp-mode.el")
-;(load "myfotran.el")
-(load "msjavascript.el")
-(load "mslisp.el")
-(load "msocaml.el")
-(load "mspython.el")
-;(load "msphp.el")
-(load "msscheme.el")
-
-;; Speedbar!
-;(require 'sr-speedbar)
-
-; Autopair: pair's braces automatically (like textmate)
-(load "msautopair.el")
-
-; terminal stuff:
-(load "msterm.el")
-
-; g-client
-;(load "msg.el")
-
-;(load "custom.el")
-
-;; Reminders:
-; don't forget you can get an elisp repl: M-x ielm
-
-;; testing starcraft.el:
-(require 'starcraft)
-(starcraft-mode t)

File gitconfig

-[user]
-	name = Mike Steder
-	email = steder@gmail.com
-	signingkey = 04C002A2
-[core]
-	excludesfile = ~/.gitignore_global
-[color]
-    diff = auto
-    status = auto
-    branch = auto
-[rerere]
-	enabled = 1
-[alias]
-	ci = commit -a
-	co = checkout
-	df = diff
-	lg = log
-	lp = log -p
-	st = status
-	tree = log --graph --decorate --pretty=oneline --abbrev-commit
-
-[github]
-	user = steder

File gitignore_global

-# python stuff
-*.pyc
-*.pyo

File hgrc

-# my mercurial config
-[ui]
-editor = emacs
-merge = internal:merge
-username = Mike Steder <steder@gmail.com>
-
-[defaults]
-commit = -v
-
-[diff]
-git = 1
-showfunc = 1
-unified = 8
-
-[extensions]
-hgext.convert=
-hgext.bookmarks =
-hggit =
-
-[alias]
-latest = log --limit 5

File profile

-# ~/.profile: executed by the command interpreter for login shells.
-# This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login
-# exists.
-# see /usr/share/doc/bash/examples/startup-files for examples.
-# the files are located in the bash-doc package.
-
-# the default umask is set in /etc/profile
-#umask 022
-
-# if running bash
-if [ -n "$BASH_VERSION" ]; then
-    # include .bashrc if it exists
-    if [ -f ~/.bashrc ]; then
-	. ~/.bashrc
-    fi
-fi
-
-# set PATH so it includes user's private bin if it exists
-if [ -d ~/bin ] ; then
-    PATH=~/bin:"${PATH}"
-fi

File screenrc

-# -*- mode: shell-script -*-
-
-# escape character that doesn't seem to conflict with
-# too many emacs keybindings
-escape ^za
-
-startup_message off
-
-# disable flow control to allow ^S and ^Q characters
-defflow off
-
-# longer scrollback
-defscrollback 32768
-
-hardstatus alwayslastline "%{.gw}%-w%0{.kg}%n %t%{-}%+w %=%{..b} %H %{..r} %m/%d %C%a "
-
-# execute .bash_profile on startup
-shell -$SHELL
-
-# autodetach on hangup
-autodetach on
-
-# Startup Screens
-
-screen -t Shell 0 bash
-screen -t Emacs emacs
-select 0

File vimrc

-" add the following to .profile or .bashrc
-"export EDITOR=vim
-"export VISUAL=vim
-"export PAGER="col -b | view -c 'set ft=man nomod nolist nonumber' -"
-"export MANPAGER="col -b | view -c 'set ft=man nomod nolist nonumber' -"
-
-set nocompatible " use vim defaults (this should be first in .vimrc)
-filetype plugin on " load ftplugin.vim
-filetype indent on " load indent.vim
-
-set history=1000 " number of commands and search patterns to save
-if version >= 630
-    set viminfo=!,%,'20,/100,:100,s100,n~/.viminfo " options for .viminfo
-else
-    set viminfo=!,%,'20,/100,:100,n~/.viminfo " options for .viminfo
-endif
-"set paste " ignore autoindent and formatoptions while pasting. does not hurt gvim.
-set binary " show control characters (ignore 'fileformat')
-set autoindent "
-set shiftround " align to standard indent when shifting with < and >
-set formatoptions+=r " auto-format comments while typing
-    " t_Co=16 is good on OSX, but not on Linux (leave unset for default)
-"set t_Co=16 " assume we have more colors to work with for highlighting
-"set background=dark " set terminal background (see F11)
-"colorscheme native
-"set guifont=Lucida_Console:h8 " set gvim font on Windows
-"syntax on " use syntax color highlighting
-"colo ps_color " color scheme in ~/.vim/colors
-"set visualbell " flash instead of beep -- this can be annoying
-"set visualbell t_vb= " no beep or flash
-"set mouse=a " enable VIM mouse (see map for F12)
-set ttyfast " smoother display on fast network connections
-set whichwrap=b,s,<,>,[,],~ " allow most motion keys to wrap
-set backspace=indent,eol,start " allow bs over EOL, indent, and start of insert
-set incsearch " incremental search
-set nojoinspaces " use only one space when using join
-set matchpairs+=<:> " add < > to chars that form pairs (see % command)
-set showmatch " show matching brackets by flickering cursor
-set matchtime=1 " show matching brackets quicker than default
-set autoread " automatically read file changed outside of Vim
-set autowrite " automatically save before commands like :next and :make
-set splitbelow " open new split windows below the current one
-set winminheight=0 " This makes more sense than the default of 1
-set noequalalways " do not resize windows on split/close
-"set shortmess="" " long messages -- does not seem to work
-set showcmd " show partial command in status line
-set suffixes+=.class,.pyc " skip bytecode files for filename completion
-set suffixes-=.h " do not skip C header files for filename completion
-set wrap " wrap long lines
-set sidescroll=1 " smooth scroll if set nowrap. for slow terminals set to 0.
-"set showbreak=>>>> " string to print before wrapped lines
-if version >= 700
-    set listchars=eol:$,tab:>-,trail:.,extends:>,precedes:<,nbsp:% " used when set list
-else
-    set listchars=eol:$,tab:>-,trail:.,extends:>,precedes:< " used when set list
-endif
-" set backup " backup files before editing
-" set backupdir=~/tmp,.,/tmp,/var/tmp " backup locations
-set dir=~/tmp,.,/tmp,/var/tmp " swap file locations
-set virtualedit=block " allow Visual block select anywhere
-set laststatus=2 " always show statusline
-set statusline=%n\ %1*%h%f%*\ %=%<[%3lL,%2cC]\ %2p%%\ 0x%02B%r%m
-set ruler " show ruler, but only shown if laststatus is off
-set rulerformat=%h%r%m%=%f " sane value in case laststatus is off
-set nonumber " don't show line numbers
-"set printoptions=number:y " put line numbers on hardcopy
-" this turns on hlsearch, but clears the highlighting when Enter is hit
-set wildmenu " show a menu of matches when doing completion
-set hlsearch " highlight the current search pattern
-set title " shows the current filename and path in the term title.
-nnoremap <silent><CR> :nohlsearch<CR><CR> " in normal mode enter clears search highlight
-if version >= 700
-    "set cusorline " highlight the line with the cursor
-    set numberwidth=4 " width of line numbers
-endif
-
-"
-" tab settings
-"
-set tabstop=4|set shiftwidth=4|set expandtab " default
-autocmd FileType python set tabstop=4|set shiftwidth=4|set expandtab " Python
-autocmd FileType make set tabstop=8|set shiftwidth=8|set noexpandtab " Makefile
-autocmd FileType man set tabstop=8|set shiftwidth=8|set noexpandtab " Man page (also used by psql to edit or view)
-autocmd FileType calendar set tabstop=8|set shiftwidth=8|set noexpandtab
-set softtabstop=4
-set shiftwidth=4
-