More fish config

pull/2/head
Bodaniel Jeanes 2009-06-12 22:19:53 +10:00
parent 4e3e1b216b
commit 61230c4486
13 changed files with 43 additions and 6 deletions

View File

@ -1,7 +1,8 @@
cd $HOME ^/dev/null # for some reason $PWD is empty in new consoles
mkdir -p ~/.l
set fish_greeting ''
set -x PWD "~" # some reason this is empty in new consoles
set -x PATH $PATH /usr/local/git/bin /usr/local/mysql/bin /usr/local/jruby/bin
set -x CDPATH . ~ ~/Sites ~/Code /Volumes ~/.l

View File

@ -0,0 +1,4 @@
function eprof
mate ~/.config
end

View File

@ -19,6 +19,7 @@ function fish_prompt --description 'Write out the prompt'
printf '%s%s ' (set_color $fish_color_git_branch) (git_parse_branch)
if git_dirty
printf '%s☠ ' (set_color red)
end

View File

@ -0,0 +1,4 @@
function gca
gc -a
end

View File

@ -1,4 +1,5 @@
function git_dirty
not git diff HEAD --quiet ^/dev/null
end

View File

@ -0,0 +1,4 @@
function gl
git pull $argv
end

View File

@ -0,0 +1,4 @@
function gps
git push $argv
end

View File

@ -0,0 +1,4 @@
function log
tail -f n0 log/*.log
end

View File

@ -1,3 +1,7 @@
function m
mate . $argv;
if not test $argv
set argv .
end
mate $argv
end

View File

@ -0,0 +1,4 @@
function migrate
rake db:migrate $argv
end

View File

@ -0,0 +1,4 @@
function migration
script/generate migration $argv
end

View File

@ -0,0 +1,4 @@
function new_function --description 'my cool siretn'
echo "cool"
end

View File

@ -1,5 +1,3 @@
function save --description 'Save current directory with name for quick access'
echo "ln -s \"$PWD\" \"~/.l/$argv\" ./"
ln -s "$PWD" "~/.l/$argv"
ln -s "$PWD" "$HOME/.l/$argv"
end