LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 12-26-2017, 03:57 PM   #16
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 7,276
Blog Entries: 4

Rep: Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760

Quote:
Originally Posted by linustalman View Post
But I removed "\\n".
bash (and other shells) prompt customisation is tricky.
did you read Habitual's christmas present?
no, i didn't think so. read it. all of it.
test, try out.
learn.
 
Old 12-27-2017, 05:18 AM   #17
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 9 Stable (Stretch) x64
Posts: 2,134

Original Poster
Rep: Reputation: 290Reputation: 290Reputation: 290
Quote:
Originally Posted by ondoho View Post
bash (and other shells) prompt customisation is tricky.
did you read Habitual's christmas present?
no, i didn't think so. read it. all of it.
test, try out.
learn.
If I wanted to spend ages learning the intricacies of Bash prompt customization - I'd not have made a thread about it. The only thing I wanted to do was move all the items to a single line -- hardly worth spending ages to get that done.
 
Old 12-27-2017, 05:58 AM   #18
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 7,276
Blog Entries: 4

Rep: Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760Reputation: 1760
Quote:
Originally Posted by linustalman View Post
If I wanted to spend ages learning the intricacies of Bash prompt customization - I'd not have made a thread about it. The only thing I wanted to do was move all the items to a single line
but you did that already!
now you're just asking:
but is it ok now?
is it really really ok?
- so the obvious answer is the one i gave.
 
Old 12-27-2017, 06:55 AM   #19
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 9 Stable (Stretch) x64
Posts: 2,134

Original Poster
Rep: Reputation: 290Reputation: 290Reputation: 290
Quote:
Originally Posted by ondoho View Post
but you did that already!
now you're just asking:
but is it ok now?
is it really really ok?
- so the obvious answer is the one i gave.
Exactly, that's why I made this thread - because I'm not familiar with bash prompt customization nor do I intend on spending a long time in learning it - I'd much rather be doing/learning other things.
 
Old 12-27-2017, 11:32 AM   #20
Habitual
LQ 5k Club
 
Registered: Jan 2011
Location: Nowhere near you, thank God.
Distribution: High Sierra
Posts: 8,660
Blog Entries: 17

Rep: Reputation: Disabled
Quote:
Originally Posted by linustalman View Post
I'd much rather be doing/learning other things.
Learn?

End transmission.
 
1 members found this post helpful.
Old 12-27-2017, 12:01 PM   #21
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 9 Stable (Stretch) x64
Posts: 2,134

Original Poster
Rep: Reputation: 290Reputation: 290Reputation: 290
Quote:
Originally Posted by Habitual View Post
Learn?

End transmission.
I prefer this:

https://duckduckgo.com/?q=online+bas...&t=ffsb&ia=web

 
Old 12-27-2017, 12:27 PM   #22
scasey
Member
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.4
Posts: 493

Rep: Reputation: 156Reputation: 156
Thanking Habitual for the Christmas present, too!

ondoho: +1

Quote:
I'm not familiar with bash prompt customization nor do I intend on spending a long time in learning it
Then recommend you not customize your bash prompt, then. Probably not a good idea to try to do things you don't intend to learn how to do...just sayin'

I'm out, too.
 
Old 12-27-2017, 02:46 PM   #23
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 9 Stable (Stretch) x64
Posts: 2,134

Original Poster
Rep: Reputation: 290Reputation: 290Reputation: 290
Thumbs up

@Habitual

Those generators are ideal.
 
Old 12-27-2017, 02:47 PM   #24
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 9 Stable (Stretch) x64
Posts: 2,134

Original Poster
Rep: Reputation: 290Reputation: 290Reputation: 290
Thumbs up

Quote:
Originally Posted by scasey View Post
Thanking Habitual for the Christmas present, too!

ondoho: +1


Then recommend you not customize your bash prompt, then. Probably not a good idea to try to do things you don't intend to learn how to do...just sayin'

I'm out, too.
I will simply use the generators as Habitual highlighted. Cheers Sean.
 
Old 12-28-2017, 08:08 AM   #25
linustalman
Senior Member
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 9 Stable (Stretch) x64
Posts: 2,134

Original Poster
Rep: Reputation: 290Reputation: 290Reputation: 290
Post

I found https://www.kirsle.net/wizards/ps1.html to be the best one.
 
  


Reply

Tags
bashrc, mx


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
Accidentally changed the bashrc file when making a change cannot find it in terminal though it appears in file browser HectorMHH Linux - Newbie 12 10-18-2017 02:20 PM
Ultimate Prompt and bashrc. File jeffguy77 Linux - General 30 06-13-2016 04:06 PM
[SOLVED] i3 - terminal prompt line endless - unwanted 'feature' ewsmith Slackware 5 02-21-2011 10:18 AM
help to edit Edit my bootloader's config file from kernel prompt jagdishpandey Linux - Kernel 5 07-03-2007 07:59 AM
terminal items to file g00ral Linux - General 2 05-09-2004 06:39 AM

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

All times are GMT -5. The time now is 12:53 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration