summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorZack Hobson2013-12-27 10:26:42 -0800
committerZack Hobson2013-12-27 10:26:42 -0800
commit2af37bd5556365371e2cffc340dcbcd7e4f4448a (patch)
tree7c5ba98e0382c2e14228c90e9ef81cc6788d83b1 /lib
parentf0eee83fcdf3047674db3310f2847704021e54e1 (diff)
downloadhcl-2af37bd5556365371e2cffc340dcbcd7e4f4448a.tar.bz2
console: fix prompt
Diffstat (limited to 'lib')
-rw-r--r--lib/hcl/console.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/hcl/console.rb b/lib/hcl/console.rb
index da0f7c5..bf0d9ce 100644
--- a/lib/hcl/console.rb
+++ b/lib/hcl/console.rb
@@ -5,8 +5,10 @@ module HCl
attr_reader :hcl
def initialize app
@hcl = app
+ prompt = $PROGRAM_NAME.split('/').last + "> "
+
binding.pry quiet: true,
- prompt:[->(a,b,c){"#{$PROGRAM_NAME}> "}],
+ prompt:[->(a,b,c){ prompt }],
print:->(io, *p){ pp p }
end