You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But can I customize it? I'd like the prompt to show the currently used Ruby version and the environment along with the default guard prompt.
I've tried getting a new instance of Guard::Jobs::PryWrapper and then calling #_prompt in a .guardrc but no luck as I'd also need to get ahold of an engine object.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'm trying to customize the guard prompt for a particular project (not system-wide) but I'm stumped.
I found this method: https://github.com/guard/guard/blob/master/lib/guard/jobs/pry_wrapper.rb#L298-L308
But can I customize it? I'd like the prompt to show the currently used Ruby version and the environment along with the default guard prompt.
I've tried getting a new instance of
Guard::Jobs::PryWrapper
and then calling#_prompt
in a.guardrc
but no luck as I'd also need to get ahold of anengine
object.Any clues?
That is my attempt:
Beta Was this translation helpful? Give feedback.
All reactions