Initial revision. Finally.
author |
Steve Losh <steve@stevelosh.com> |
date |
Sun, 26 Apr 2009 17:37:34 -0400 |
parents |
|
children |
376d2be05f80
|
branches/tags |
(none) |
files |
.bash_profile .bashrc .gitconfig .hgrc .vimrc |
Changes
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.bash_profile Sun Apr 26 17:37:34 2009 -0400
@@ -0,0 +1,2 @@
+source ~/.bashrc
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.bashrc Sun Apr 26 17:37:34 2009 -0400
@@ -0,0 +1,45 @@
+alias ls='ls -Goh '
+alias less='less -R '
+alias webf-mysql-tunnel='ssh -NL 3306:sjl.webfactional.com:3306 webf'
+alias hl='less -R'
+alias pm='python manage.py '
+alias tunnel_webf_mysql='ssh -NL 3306/web45.webfaction.com/3306 webf'
+
+# Environment variables ------------------------------------------------------
+export EDITOR='vim'
+export PATH="/usr/local/bin:${PATH}:/opt/local/bin"
+export WORKON_HOME="${HOME}/lib/virtualenvs"
+
+# Extra shell extensions like j and tab completion for Mercurial -------------
+source ~/lib/j/j.sh
+source ~/lib/hg/hg-tab-completion
+source ~/lib/virtualenvwrapper_bashrc
+
+# Prompt stuff ---------------------------------------------------------------
+
+hg_dirty() {
+ hg status --no-color 2> /dev/null \
+ | awk '$1 == "?" { print "?" } $1 != "?" { print "!" }' \
+ | sort | uniq | head -c1
+}
+
+hg_in_repo() {
+ [[ `hg branch 2> /dev/null` ]] && echo 'on '
+}
+
+hg_branch() {
+ hg branch 2> /dev/null
+}
+
+COLOR_DEFAULT="[37;40m"
+COLOR_PINK="[35;40m"
+COLOR_GREEN="[32;40m"
+COLOR_ORANGE="[33;40m"
+
+export PS1='\n\[\e${COLOR_PINK}\]\u \
+\[\e${COLOR_DEFAULT}\]at \[\e${COLOR_ORANGE}\]\h \
+\[\e${COLOR_DEFAULT}\]in \[\e${COLOR_GREEN}\]\w \
+\[\e${COLOR_DEFAULT}\]$(hg_in_repo)\
+\[\e${COLOR_PINK}\]$(hg_branch)\[\e${COLOR_GREEN}\]$(hg_dirty) \
+\[\e${COLOR_DEFAULT}\]\n$ '
+
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.gitconfig Sun Apr 26 17:37:34 2009 -0400
@@ -0,0 +1,9 @@
+[user]
+name = Steve Losh
+email = steve@stevelosh.com
+
+[alias]
+glog = log --graph --topo-order --pretty='format:%an: %s (%h)%n'
+com = commit
+co = checkout
+stat = status
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.hgrc Sun Apr 26 17:37:34 2009 -0400
@@ -0,0 +1,31 @@
+[ui]
+username = Steve Losh <steve@stevelosh.com>
+editor = vim
+
+[extensions]
+hgext.graphlog =
+hgext.record =
+hgext.bookmarks =
+hgext.rebase =
+hgext.purge =
+hgext.mq =
+parentrevspec =
+color =
+alias =
+
+[color]
+status.modified = cyan bold
+status.added = green bold
+status.removed = red bold
+status.deleted = yellow bold underline
+status.unknown = magenta bold underline
+status.ignored = black bold
+
+[bookmarks]
+track.current = True
+
+[defaults]
+glog = -l7 --template 'changeset: {rev}:{node|short} {tags}\nsummary: {desc|firstline|fill68|tabindent|tabindent}\n\n'
+diff = --color always
+status = --color always
+serve = --style=gitweb
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/.vimrc Sun Apr 26 17:37:34 2009 -0400
@@ -0,0 +1,18 @@
+set nocompatible
+set autoindent
+set smartindent
+set tabstop=4
+set shiftwidth=4
+set expandtab
+set wrap
+set lbr
+
+set showmatch
+set ruler
+set incsearch
+set backspace=indent,eol,start
+set nu
+set hls
+
+syntax on
+set background=dark
\ No newline at end of file