Permalink
Browse files

capistrano and rake completion scrips now use a custom md5pwd functio…

…n that should also work on linux
  • Loading branch information...
1 parent c1305cd commit 0973091aff9359c4229c1433e1d3934c70c19d68 @bartvandendriessche bartvandendriessche committed Jul 5, 2010
Showing with 4 additions and 4 deletions.
  1. +2 −2 completions/cap.fish
  2. +2 −2 completions/rake.fish
View
4 completions/cap.fish
@@ -1,6 +1,6 @@
function __cache_or_get_cap_completion -d "Create cap completions"
mkdir -p "/tmp/cap_completion_cache"
- set -l hashed_pwd (md5 -q -s (pwd))
+ set -l hashed_pwd (md5pwd)
set -l cap_cache_file "/tmp/cap_completion_cache/$hashed_pwd"
if not test -f "$cap_cache_file"
@@ -10,4 +10,4 @@ function __cache_or_get_cap_completion -d "Create cap completions"
cat "$cap_cache_file"
end
-complete -x -c cap -a "(__cache_or_get_cap_completion)" --description 'Capistrano task'
+complete -x -c cap -a "(__cache_or_get_cap_completion)" --description 'Capistrano task'
View
4 completions/rake.fish
@@ -1,6 +1,6 @@
function __cache_or_get_rake_completion -d "Create rake completions"
mkdir -p "/tmp/rake_completion_cache_for_$USER"
- set -l hashed_pwd (md5 -q -s (pwd))
+ set -l hashed_pwd (md5pwd)
set -l rake_cache_file "/tmp/rake_completion_cache_for_$USER/$hashed_pwd"
if not test -f "$rake_cache_file"
@@ -10,4 +10,4 @@ function __cache_or_get_rake_completion -d "Create rake completions"
cat "$rake_cache_file"
end
-complete -x -c rake -a "(__cache_or_get_rake_completion)" --description 'Rake Task'
+complete -x -c rake -a "(__cache_or_get_rake_completion)" --description 'Rake Task'

0 comments on commit 0973091

Please sign in to comment.