Skip to content

Commit

Permalink
First changes, threw out a number of files I don't need.
Browse files Browse the repository at this point in the history
  • Loading branch information
czottmann committed Feb 17, 2009
1 parent 06ed7a9 commit 07b410b
Show file tree
Hide file tree
Showing 12 changed files with 34 additions and 74 deletions.
3 changes: 0 additions & 3 deletions .pylintrc

This file was deleted.

4 changes: 3 additions & 1 deletion .vimrc
Expand Up @@ -11,7 +11,9 @@ endif
set nomodeline
set showmatch
set title
set noautoindent
set cindent
set number
set autoindent
set nosmartindent

" i18n friendly
Expand Down
22 changes: 7 additions & 15 deletions README.markdown
@@ -1,20 +1,12 @@
home directory
==============
# home directory

Files from my home directory (work, laptop and shared hosting) which
are open to anyone to investigate and learn from.
Files from my home directory (work, laptop and shared hosting). Forked from
[Brad](http://github.com/bradleywright/homedir/tree) who forked it from
[Norm](http://github.com/norm/homedir/tree). Thanks to both of them.


Philosophy
----------
There have been countless times in my life that I've learned something
new (whether it is a programming technique, time saving shortcut, or just
a random useful tip) from seeing people's "secret software". I figured I'd
share mine too.

See also
--------
* http://www.jwz.org/hacks/marginal.html
* http://simon-cozens.org/programmer/secret-software.html
## The Idea

One homedir git repo for all my machines. Depending on OS and machine, different
files are used and executed.

7 changes: 0 additions & 7 deletions bin/fab

This file was deleted.

28 changes: 0 additions & 28 deletions bin/vm

This file was deleted.

4 changes: 1 addition & 3 deletions etc/bash/host/coopers → etc/bash/host/Cortana
@@ -1,5 +1,3 @@
# ~/etc/bash/host/coopers
# ~/etc/bash/host/Cortana

[ -x ${HOME}/bin/textmate ] && export VISUAL="${HOME}/bin/textmate"

export TM_PYCHECKER=pylint
3 changes: 3 additions & 0 deletions etc/bash/host/Rupert
@@ -0,0 +1,3 @@
# ~/etc/bash/host/Rupert

[ -x ${HOME}/bin/textmate ] && export VISUAL="${HOME}/bin/textmate"
2 changes: 2 additions & 0 deletions etc/bash/host/charpool
@@ -0,0 +1,2 @@
# ~/etc/bash/host/charpool

15 changes: 8 additions & 7 deletions etc/bash/os/Darwin
Expand Up @@ -10,22 +10,23 @@ export JAVA_HOME="/System/Library/Frameworks/JavaVM.framework/Home"
hostname=`scutil --get LocalHostName`


# Load personal Python libraries specific to version available
PYTHON_VERSION=`python -c "import sys; print sys.version" | sed -E 's/^([0-9]\.[0-9])(.*)/\1/g' | grep -v '\['`
[ -x "${HOME}/Library/Python/${PYTHON_VERSION}/site-packages" ] && export PYTHONPATH="${HOME}/Library/Python/${PYTHON_VERSION}/site-packages"


# pretty colours in BSD style
export LSCOLORS=dxfxcxdxbxegedabagacad

alias ls='ls -FG'


# Locale
export LC_ALL=de_DE.UTF-8


# MySQL path on OS X
[ -x /usr/local/mysql/bin ] && PATH="/usr/local/mysql/bin:${PATH}"


# MacPorts stuff - currently compiled to /usr/local/ports
[ -x /usr/local/ports/bin ] && PATH="/usr/local/ports/bin:${PATH}"
[ -x /usr/local/ports/bin ] && PATH="/usr/local/ports/bin:${PATH}"

# manpath is currently only edited here, so just export it
[ -x /usr/local/ports/share/man ] && export MANPATH="/usr/local/ports/share/man:${MANPATH}"
[ -x /usr/local/ports/share/man ] && export MANPATH="/usr/local/ports/share/man:${MANPATH}"

8 changes: 1 addition & 7 deletions etc/bash/os/Linux
Expand Up @@ -3,15 +3,9 @@
# bash startup commands specifically for Linux boxes


# Load personal Python libraries specific to version available
# sys.version prints: X.Y.Z (revision)\n[BUILD], so just keep the first bits
PYTHON_VERSION=`python -c "import sys; print sys.version" | sed -r 's/^([0-9]\.[0-9])(.*)/\1/g' | grep -v '\['`
[ -x "${HOME}/lib/python${PYTHON_VERSION}/site-packages" ] && export PYTHONPATH="${HOME}/lib/python${PYTHON_VERSION}/site-packages"


# pretty colours in GNU style
export LS_COLORS='di=93:fi=0:ln=36:pi=5:so=95:bd=5:cd=5:or=31:mi=31:ex=32:tw=36:ow=36'


# Instead of -G use --color
alias ls='ls -F --color'
alias ls='ls -F --color'
6 changes: 3 additions & 3 deletions etc/bash/prompt
Expand Up @@ -4,11 +4,11 @@


case $HOST in
coopers*|boags*)
Rupert*|Cortana*)
# fork when not at home
PS1="${pgreen}${HOST}${preset}"
;;
intranation*)
charpool*)
# live hostname
PS1="${pbgred}${HOST}${preset}"
;;
Expand All @@ -21,7 +21,7 @@ PS1="${PS1} ${pyellow}\w${preset}"


# if not my regular user, show username
[ $USER != 'bradleyw' ] && PS1="${pred}\u${preset}@${PS1}"
[ $USER != 'Carlo' ] && PS1="${pred}\u${preset}@${PS1}"


# if we can edit the title of the terminal, do so
Expand Down
6 changes: 6 additions & 0 deletions etc/bash/rc/ruby
@@ -0,0 +1,6 @@
# ~/etc/bash/rc/ruby
#
# Ruby specific settings

export RI="--format bs"
export RUBYOPT=rubygems

0 comments on commit 07b410b

Please sign in to comment.