2009-06-12 22:19:53 +10:00
|
|
|
cd $HOME ^/dev/null # for some reason $PWD is empty in new consoles
|
|
|
|
|
2009-06-11 09:54:54 +10:00
|
|
|
mkdir -p ~/.l
|
|
|
|
|
|
|
|
set fish_greeting ''
|
|
|
|
|
2009-09-06 00:35:57 +10:00
|
|
|
set path_list /Library/PostgreSQL8/bin /opt/local/*bin /opt/local/*/*bin /usr/local/*bin /usr/local/*/*bin /opt/nginx/*bin ~/.config/fish/bin
|
|
|
|
|
2009-06-13 20:02:38 +10:00
|
|
|
set cd_path_list . ~ ~/Sites ~/Code /Volumes ~/.l
|
|
|
|
|
2009-09-06 00:35:57 +10:00
|
|
|
set PATH /usr/sbin /usr/bin /sbin /bin
|
|
|
|
|
2009-06-13 20:02:38 +10:00
|
|
|
for i in $path_list
|
|
|
|
if not contains $i $PATH
|
|
|
|
if test -d $i
|
2009-09-06 00:35:57 +10:00
|
|
|
set PATH $i $PATH
|
2009-06-13 20:02:38 +10:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
for i in $cd_path_list
|
|
|
|
if not contains $i $CDPATH
|
|
|
|
if test -d $i
|
|
|
|
set CDPATH $CDPATH $i
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2009-06-11 09:54:54 +10:00
|
|
|
|
|
|
|
set -x EDITOR "mate -w"
|
|
|
|
set -x VISUAL $EDITOR
|
2009-06-16 12:57:49 +10:00
|
|
|
set -x GIT_EDITOR "mate -wl1" # ensures cursor is at beginning of document
|
2009-06-11 09:54:54 +10:00
|
|
|
|
|
|
|
set -x CLICOLOR 1
|
|
|
|
set -x JAVA_HOME "/usr/"
|
|
|
|
set -U BROWSER "open -a Safari"
|
|
|
|
|
|
|
|
set fish_color_cwd blue
|
2009-07-05 01:25:58 +10:00
|
|
|
set fish_color_uneditable_cwd red
|
|
|
|
|
|
|
|
bind \er 'restart_rails_app >/dev/null'
|