Repository navigation
Not compatible with Zsh #117
Description
Activity
You need to create an alias for rake in your .zshrc. Like this:
alias rake="noglob rake"
With that in place you'll be good to go.
Reacted by Fi5tThanks @zan5hin! I should add that to the setup docs!
If you don't feel like not globbing, the following works fairly well, too:
rake "new_post[Zombie Ninjas Attack: A Pastafarian's Retrospective]"It probably dies on a lot of characters, but if you're in a bind, it's better than nothing.
Had the same problem, the .zshrc fix did not work, but @nserror comment worked.
That's pretty awful. Perhaps I should ditch the inline variable and make it a dialog?
rake new_post Enter a post title:I like that idea
I'm sorry for the annoyance, I didn't realize rake was so poor at arguments. This is on the list of coming attractions.
I'm not able to create a posting with a comma either. Using a \ to escape the comma didn't help. If you do add a prompt for the post name, could that be optional? I.e., if I enter
rake new_post["Some title"]have it work as it does not, but if I just enterrake new_posthave it prompt me for the title?Yeah I don't want everyone to have to relearn how to post. If the args are empty it'll ask for a title. Good thought.
Calling
downcaseon the title when making the filename might be a good idea, too. ;-)I'm having the same trouble, and if I write
rake new_postit just creates a new post titled "New post" and doesn't ask for the title as @imathis suggested... Any idea on when will it be implemented? :)I'm currently working full steam on getting the 2.1 release ready. It's going to be in there. Sorry for the delay. I'm hoping to have it up this weekend.
10 remaining items
- added a commit that references this issue
on May 21, 2012 Definitely appreciate the .zshrc alias comment. Fixed the issue for me, too.
@imathis per your bfa5255 commit, I tried,
rake new_postand was not prompted for a title, but rather the title was automatically "new post" and the file was<date>-new-post.markdown.Did you change this?
@westonplatter Rake new_post has had defaults for a long time.
Latest version, used here with oh-my-zsh, some issues still persist:
➜ .octopress git:(master) ✗ rake new_post[\"test"\] dquote> ➜ .octopress git:(master) ✗ rake "new_post[test]" mkdir -p source/_posts Creating new post: source/_posts/2012-09-11-test.markdown ➜ .octopress git:(master) ✗ rm source/_posts/2012-09-11-* ➜ .octopress git:(master) ✗ rake "new_post[karida loaded!]" zsh: event not found: ] ➜ .octopress git:(master) ✗ rake "new_post[karida loaded]" mkdir -p source/_posts Creating new post: source/_posts/2012-09-11-karida-loaded.markdown ➜ .octopress git:(master) ✗I can't put special chars like: $!@#%^&.. in the title. But it's okay...
Try creating an alias like this
alias rake="noglob rake".Already did that.
+1 for zsh support.
the
alias rake="noglob rake"worked for me with iterm2 (zsh)bundle exec rake "new_post[no special characters]"
was what i needed to run with rake 0.9.6 (using a oh-my-zsh and iterm2)Had the same problem, the .zshrc fix did not work, but @nserror comment worked.thanks.
thanks good work for me
I have the same problem, but using
the alias rake="noglob rake"works fine. Putting this suggestion in the doc may be helpful for many folks :-)
Hello,
The Rake task for creating a new post seems to be not compatible with Zsh.