Permalink
Browse files

Make sure we only fetch the md5sum.

  • Loading branch information...
1 parent 3879a03 commit d609bd6b9192e343af73bc1be7dfcd9757db9cc4 @nirvdrum committed Jun 26, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 completions/cap.fish
  2. +1 −1 completions/rake.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 (echo (pwd) | md5sum)
+ set -l hashed_pwd (echo (pwd) | md5sum | cut -d " " -f 1)
set -l cap_cache_file "/tmp/cap_completion_cache/$hashed_pwd"
if not test -f "$cap_cache_file"
@@ -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 (echo (pwd) | md5sum)
+ set -l hashed_pwd (echo (pwd) | md5sum | cut -d " " -f 1)
set -l rake_cache_file "/tmp/rake_completion_cache_for_$USER/$hashed_pwd"
if not test -f "$rake_cache_file"

0 comments on commit d609bd6

Please sign in to comment.