mirror of https://github.com/bjeanes/dotfiles.git
More fish config
parent
4e3e1b216b
commit
61230c4486
|
@ -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
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
function eprof
|
||||
mate ~/.config
|
||||
|
||||
end
|
|
@ -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
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
function gca
|
||||
gc -a
|
||||
|
||||
end
|
|
@ -1,4 +1,5 @@
|
|||
function git_dirty
|
||||
|
||||
not git diff HEAD --quiet ^/dev/null
|
||||
|
||||
end
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
function gl
|
||||
git pull $argv
|
||||
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
function gps
|
||||
git push $argv
|
||||
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
function log
|
||||
tail -f n0 log/*.log
|
||||
|
||||
end
|
|
@ -1,3 +1,7 @@
|
|||
function m
|
||||
mate . $argv;
|
||||
if not test $argv
|
||||
set argv .
|
||||
end
|
||||
mate $argv
|
||||
|
||||
end
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
function migrate
|
||||
rake db:migrate $argv
|
||||
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
function migration
|
||||
script/generate migration $argv
|
||||
|
||||
end
|
|
@ -0,0 +1,4 @@
|
|||
function new_function --description 'my cool siretn'
|
||||
echo "cool"
|
||||
|
||||
end
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue