From 369541cc613717fe68966128da58cf9933cccbcf Mon Sep 17 00:00:00 2001 From: Bodaniel Jeanes Date: Mon, 19 Oct 2009 14:25:35 +1000 Subject: [PATCH] Latest changes --- fish/bin/fish_method_missing | 12 ++++- fish/config.fish | 2 +- fish/functions/et.fish | 4 ++ fish/functions/gp.fish | 4 ++ fish/functions/sc.fish | 3 +- gemrc | 13 ++--- gitignore | 92 ++++++++++++++++-------------------- 7 files changed, 68 insertions(+), 62 deletions(-) create mode 100644 fish/functions/et.fish create mode 100644 fish/functions/gp.fish diff --git a/fish/bin/fish_method_missing b/fish/bin/fish_method_missing index 7379640..dcb90f7 100755 --- a/fish/bin/fish_method_missing +++ b/fish/bin/fish_method_missing @@ -2,11 +2,19 @@ command = ARGV.shift +def run(cmd) + puts "Running #{cmd.inspect} instead" + system(cmd) +end + case command when /^git(@|:\/\/).*\.git$/ - system("git clone #{command.inspect}") + run("git clone #{command.inspect}") when /^(?:ftp|https?):\/\/.+\.t(?:ar\.)?gz$/ - system("curl #{command.inspect} | tar xzv") + run("curl #{command.inspect} | tar xzv") +when /^[a-z0-9_\-\/]+\.feature$/ + run("cucumber #{command}") else $stderr.puts "No default action defined in #{__FILE__.inspect}" + abort end \ No newline at end of file diff --git a/fish/config.fish b/fish/config.fish index 5456b07..018ed01 100644 --- a/fish/config.fish +++ b/fish/config.fish @@ -26,7 +26,7 @@ for i in $cd_path_list end end -set -x EDITOR "mate -w" +set -x EDITOR (echo (which mate) -w) set -x VISUAL $EDITOR set -x GIT_EDITOR "mate -wl1" # ensures cursor is at beginning of document diff --git a/fish/functions/et.fish b/fish/functions/et.fish new file mode 100644 index 0000000..481fcfc --- /dev/null +++ b/fish/functions/et.fish @@ -0,0 +1,4 @@ +function et + m $argv + +end diff --git a/fish/functions/gp.fish b/fish/functions/gp.fish new file mode 100644 index 0000000..3bc994e --- /dev/null +++ b/fish/functions/gp.fish @@ -0,0 +1,4 @@ +function gp + gps $argv + +end diff --git a/fish/functions/sc.fish b/fish/functions/sc.fish index aacb24a..415831d 100644 --- a/fish/functions/sc.fish +++ b/fish/functions/sc.fish @@ -1,4 +1,5 @@ function sc --description 'Run the Rails console' - script/console + script/console $argv + end diff --git a/gemrc b/gemrc index c891e56..ed0779b 100644 --- a/gemrc +++ b/gemrc @@ -1,12 +1,13 @@ --- +:benchmark: false :verbose: true -:gem: --no-ri -:rdoc: --inline-source --line-numbers --fmt=shtml --template=direct -:bulk_threshold: 1000 -:sources: +:update_sources: true +gem: --no-ri +gemcutter_key: 36e2540f40da9e6e1737951140f1723c +:sources: - http://gemcutter.org - http://gems.rubyforge.org/ - http://gems.github.com/ :backtrace: false -:benchmark: false -:update_sources: true +:bulk_threshold: 1000 +rdoc: --inline-source --line-numbers --fmt=shtml --template=direct diff --git a/gitignore b/gitignore index 999c758..4573839 100755 --- a/gitignore +++ b/gitignore @@ -1,56 +1,44 @@ -.DS_Store -Thumbs.db -._* -build/* -pkg/* -.svn -*.pbxuser -*.move1v3 -*~ -log/* -tmp/**/* -# use glob syntax. -syntax: glob -*.ser -*.class -*~ *.bak -*.off -*.old -.DS_Store - -# logs -derby.log - -# eclipse conf file -.settings -.classpath -.project -.manager - -# building -target -build -null -tmp* -temp* -dist -test-output - -# other scm -.svn -.CVS -.hg* - -# switch to regexp syntax. -# syntax: regexp -# ^\.pc/ - - -# IntelliJ +*.class *.iml *.ipr *.iws - -# Rubymine -.idea \ No newline at end of file +*.mode1v3 +*.mode2v3 +*.move1v3 +*.off +*.old +*.out +*.pbxuser +*.perspective +*.perspectivev3 +*.ser +*.swp +*.xcodeproj/*.tm_build_errors +*~ +*~.nib +.classpath +.CVS +.DS_Store +.hg* +.idea +.manager +.project +.settings +.svn +._* +bin/* +build +build/* +derby.log +dist +log/* +null +pkg/* +profile +target +temp* +test-output +Thumbs.db +tmp* +tmp/**/*