summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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