LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 09-19-2014, 01:35 AM   #16
Mr. Alex
Senior Member
 
Registered: May 2010
Distribution: No more Linux. Done with it.
Posts: 1,238

Rep: Reputation: Disabled

My humble .

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.
Code:
~/downloads $

~/downloads #

Last edited by Mr. Alex; 09-19-2014 at 01:12 PM.
 
1 members found this post helpful.
Old 09-19-2014, 08:42 AM   #17
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Rep: Reputation: 265Reputation: 265Reputation: 265
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...
 
Old 09-19-2014, 08:45 AM   #18
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
I like my yellow-on-blue retro prompt:

Last edited by Habitual; 06-26-2015 at 05:47 PM.
 
Old 09-19-2014, 08:48 AM   #19
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Rep: Reputation: 265Reputation: 265Reputation: 265
Quote:
Originally Posted by Habitual View Post
I like my yellow-on-blue retro prompt:
C:/home????? What, did you boot from a DOS floppy, and have / formatted as fat32?
 
Old 09-19-2014, 08:50 AM   #20
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by maples View Post
C:/home????? What, did you boot from a DOS floppy, and have / formatted as fat32?
All Linux all the time...
Code:
DOS='C:${PWD//\//\\\}>'
PS1="\[\033[00m\]\[\033[00m\]\[\033[01;39m\]$DOS\[\033[00m\]"
I remember floppy drives.
 
Old 09-19-2014, 08:51 AM   #21
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.2
Posts: 7,811
Blog Entries: 58

Rep: Reputation: Disabled
Here's a site where you can experiment with your prompt:
http://bashrcgenerator.com/
 
1 members found this post helpful.
Old 09-19-2014, 08:57 AM   #22
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by brianL View Post
Here's a site where you can experiment with your prompt:
http://bashrcgenerator.com/
+1 and Good Stuff. Thanks!
 
Old 09-22-2014, 07:57 PM   #23
jeffguy77
LQ Newbie
 
Registered: May 2008
Posts: 16

Original Poster
Rep: Reputation: 4
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.
 
Old 09-23-2014, 10:46 AM   #24
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by jeffguy77 View Post
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.
 
Old 09-23-2014, 11:42 AM   #25
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138Reputation: 2138
Quote:
Originally Posted by Habitual View Post
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).
 
Old 09-23-2014, 11:52 AM   #26
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
You did put the
Code:
iatest=$(expr index "$-" i)
doh!

NOW it's fixed.

Thanks.
 
Old 09-23-2014, 11:59 AM   #27
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 9,779

Rep: Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410
Why not put this on GitHub, jeffguy77?
 
Old 09-23-2014, 04:42 PM   #28
jeffguy77
LQ Newbie
 
Registered: May 2008
Posts: 16

Original Poster
Rep: Reputation: 4
Quote:
Originally Posted by dugan View Post
Why not put this on GitHub, jeffguy77?
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.
 
Old 08-21-2015, 01:42 PM   #29
genehunter
LQ Newbie
 
Registered: Aug 2015
Posts: 1

Rep: Reputation: Disabled
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?
 
Old 06-13-2016, 11:06 AM   #30
Pyrepenol
LQ Newbie
 
Registered: Jun 2016
Posts: 1

Rep: Reputation: Disabled
Just want to add that I absolutely love this script! Thanks for sharing!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Ultimate Edition 3.4 has been released with ultimate Features LXer Syndicated Linux News 0 07-03-2012 07:10 AM
How to change .bashrc prompt for logging in via SSH. Amckin Linux - Laptop and Netbook 1 11-04-2009 12:48 PM
the ultimate file/backup server? jemmrich Linux - Server 5 01-18-2008 08:02 AM
.bashrc - how do I remove the working-directory from my prompt? oskar Linux - General 3 02-24-2007 09:04 AM
can't the file bashrc Paxmaster Linux - Software 10 01-02-2005 06:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration