Hi new to ruby here. Currently I am spending alot of time playing around
on irb.
I am able to set up the prompt to my liking with a .irbc file however, I
would like the prompt to update based upon my working directory. A *sh
style prompt like : [hostname:/home/don/scripts].
Hi new to ruby here. Currently I am spending alot of time playing around
on irb.
I am able to set up the prompt to my liking with a .irbc file however, I
would like the prompt to update based upon my working directory. A *sh
style prompt like : [hostname:/home/don/scripts].
How can I do this?
something on the lines of
cwd = Proc.new { Dir.getwd + "| %N(%m):%03n:%i> " }
cwd.instance_eval do alias :dup :call end