refactoring

This commit is contained in:
Loic Nageleisen 2012-08-09 15:37:56 +02:00
parent 53b18ca0db
commit f699a87614
24 changed files with 67 additions and 57 deletions

14
shell/aliases Normal file
View file

@ -0,0 +1,14 @@
## .aliases
case "$(uname)" in
"Darwin")
alias top="top -o cpu -s 5"
;;
"Linux")
alias ls="ls --color"
;;
esac
alias ll="ls -l"
alias tree="tree -C"

4
shell/colors Normal file
View file

@ -0,0 +1,4 @@
# add some color
GREP_OPTIONS='--color=auto'
CLICOLOR=1;
export GREP_OPTIONS CLICOLOR

5
shell/editor Normal file
View file

@ -0,0 +1,5 @@
# default editor
EDITOR=vim
VISUAL=vim
export EDITOR VISUAL

12
shell/homebrew Normal file
View file

@ -0,0 +1,12 @@
# local path
PATH=/usr/local/bin:/usr/local/sbin:$PATH
# node.js path
NODE_PATH=/usr/local/lib/node
export NODE_PATH
# python
test -d /usr/local/share/python3 && PATH="/usr/local/share/python3:$PATH"
test -d /usr/local/share/python && PATH="/usr/local/share/python:$PATH"
export PATH

3
shell/osx Normal file
View file

@ -0,0 +1,3 @@
# OS X python user path
PATH=~/Library/Python/2.7/bin:$PATH
export PATH

4
shell/rbenv Normal file
View file

@ -0,0 +1,4 @@
# rbenv
test -d "$HOME/.rbenv/bin" && PATH="$HOME/.rbenv/bin:$PATH"
which rbenv 2>&1 >/dev/null && eval "$(rbenv init -)"
export PATH

6
shell/ssh Normal file
View file

@ -0,0 +1,6 @@
# ssh keychain, if no agent set
if [ -z "$SSH_AUTH_SOCK" ]; then
if which keychain 2>&1 >/dev/null; then
eval $(keychain --eval --agents ssh -Q --quiet id_rsa)
fi
fi

3
shell/user Normal file
View file

@ -0,0 +1,3 @@
# user path
PATH=~/.local/bin:$PATH
export PATH