Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More neat bash prompt for Debian #830

Open
nataraj-hates-MS-for-stealing-github opened this issue Dec 10, 2024 · 0 comments
Open

More neat bash prompt for Debian #830

nataraj-hates-MS-for-stealing-github opened this issue Dec 10, 2024 · 0 comments

Comments

@nataraj-hates-MS-for-stealing-github

I use perlbew with Debian, and first thing I miss is ability to quickly see what perl I am currently using. Would be great to have it in command prompt. Like that:

изображение

I make this with a nasty hack for personal use for now:

--- perlbrew.pm.orig    2024-12-10 13:07:18.187557095 +0300
+++ perlbrew.pm 2024-12-10 15:17:18.303853634 +0300
@@ -1893,7 +1893,8 @@
         PERLBREW_VERSION => $VERSION,
         PERLBREW_PATH    => $self->root->bin,
         PERLBREW_MANPATH => "",
-        PERLBREW_ROOT => $self->root
+        PERLBREW_ROOT => $self->root,
+       PROMPT_COMMAND => 'debian_chroot=$PERLBREW_PERL',
     );
 
     require local::lib;

It is bash-specific, and Debain-specific. And do not treat nicely other PROMPT_COMMAND possible values.

But if you like the idea, and would accept such patch. I can do more neat version of the patch, that do it in a good way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant