Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
After some time of using Linux I lost interest in complicated bloated prompts. They distract a lot and you rarely really read data those prompts provide before any new command. I find simple
Code:
user@machine: $
user@machine: #
to be much better as it's neat, clean and doesn't have much to distract you (and eat up space).
Also, prompt with only current dir and type of user is nice.
I agree- I couldn't work with that much info on my prompt...I would get completely lost...
I really like Debian's defauld bash prompt. Hostname, username, working directory. I really need to look at it to make my Arch laptop look the same way, so that it displays the full path to the current directory...
Grail, awesome post. I took a look and will probably make some changes when I get time. I'm not the ultimate at shell scripting. I have collected a lot of this stuff over the years.
Habitual, that is an awesome blog! And I'm adding your up and down arrow search to my .bashrc because it's awesome. And I laughed at the C: on your prompt.
BrianL, nice link. I used to have a page like that where you could created different date formats and can't find it anymore.
And I'm adding your up and down arrow search to my .bashrc because it's awesome. And I laughed at the C: on your prompt.
Yeah, I'm having mixed reactions to the solution offered in your post. If I use that it does fix the non-interactive issue with
"warning: line editing not enabled" messages, but I am then unable to use that 'feature' interactively.
So I am just kind of in the middle on it being "the solution" for me, atm.
But that's what I LOVE about Linux, there's always a 'way', we just have to be creative.
Have a Great Day.
Yeah, I'm having mixed reactions to the solution offered in your post. If I use that it does fix the non-interactive issue with
"warning: line editing not enabled" messages, but I am then unable to use that 'feature' interactively.
You did put the
Code:
iatest=$(expr index "$-" i)
line at the top right? Without that those if statements would just shut off the bind commands entirely. The command above is what makes it all work (by searching for "i" in "$-", which means it's an interactive session).
Hmmm... interesting thought. I will say, most of the people who make complex prompts use zsh, not bash, because of it's right aligned prompt section and other extras. I prefer to stay on bash for compatibility. It's an idea though. Thanks for the suggestion!
Habitual, I'm glad it's working for you. And your blog has some interesting stuff. I didn't know you could put random times into a cron job.
This does not work with the ultimate bashrc script
I am trying to use autojump, but it will not autoload the directories to the autojump list as the custom prompt is not compatible.
Here is the thread on the issue from other users.
askubuntu.com/questions/185962/autojump-in-12-04-doesnt-work
I tried using the change and adding to my .bashrc, but it does not work.
Any ideas on what to add to the ultimate .bashrc to make autojump work?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.