Permalink
Browse files

cd without param

  • Loading branch information...
1 parent 484c45d commit fe85f76c299eddc186b4863f6236a989a85c5dda @glejeune glejeune committed with Feb 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 shirt
View
2 shirt
@@ -2,7 +2,7 @@
require 'shellwords'
BUILTINS = {
- 'cd' => lambda { |dir| Dir.chdir(dir) },
+ 'cd' => lambda { |dir = ENV["HOME"]| Dir.chdir(dir) },
'exit' => lambda { |code = 0| exit(code.to_i) },
'exec' => lambda { |*command| exec *command }
}

0 comments on commit fe85f76

Please sign in to comment.