[SOLVED] How do I change my Bash profile?

Forum rules
We don't support installations in VirtualBox, VMWare, qemu or others. We ignore posts about WINE, PlayOnLinux, Steam and Skype. We don't support btrfs, lvm, UEFI, side-by-side installations with GPT or dualboot with anything newer than Windows XP.
Google your problem first. Check the Wiki. Read the existing threads. It's okay to "hijack" an existing thread, yes! If your problem is not yet covered, open a new thread. To get the quickest possible help, mention the exact release codename in your post (uname -a is a good idea, too). Due to the lack of crystal balls, attach the output of lspci -nnk if you encounter hardware problems.
User avatar
Dr_Chroot
Alfalfa
Posts: 1100
Joined: Mon Jun 09, 2014 9:49 pm
Location: among the sagebrush
Contact:

[SOLVED] How do I change my Bash profile?

Unread post by Dr_Chroot » Mon Nov 03, 2014 1:51 am

dumb question...

I tried to sort through the default .bashrc on Baconator, but couldn't find where I would edit the "PS1 ='blah blah blah'" section...

Thanks for any help!

EDIT: it was too long to post the default .bashrc, so I tossed it on pastebin: http://pastebin.com/a1LNscFj
Last edited by Dr_Chroot on Mon Nov 03, 2014 2:11 am, edited 2 times in total.
Fight internet censorship.
EFF | Tor Project | Bitcoin

"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: How do I change my Bash profile?

Unread post by dkeg » Mon Nov 03, 2014 2:09 am

For changing your bash prompt, look for this

Code: Select all

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
    ;;
*)
    ;;
esac
comment out the PS1 and add one of your liking
then either close out and open a new terminal, or simply enter

Code: Select all

source .bashrc

Work hard; Complain less

User avatar
Dr_Chroot
Alfalfa
Posts: 1100
Joined: Mon Jun 09, 2014 9:49 pm
Location: among the sagebrush
Contact:

Re: How do I change my Bash profile?

Unread post by Dr_Chroot » Mon Nov 03, 2014 2:10 am

Awesome! Thanks dkeg!
Fight internet censorship.
EFF | Tor Project | Bitcoin

"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden

User avatar
dkeg
Configurator
Posts: 3782
Joined: Sun Nov 18, 2012 9:23 pm
Location: Mid-Atlantic Grill

Re: [SOLVED] How do I change my Bash profile?

Unread post by dkeg » Mon Nov 03, 2014 2:13 am

Excellent ... np

Work hard; Complain less

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: [SOLVED] How do I change my Bash profile?

Unread post by rhowaldt » Mon Nov 03, 2014 9:35 am

All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.

User avatar
Dr_Chroot
Alfalfa
Posts: 1100
Joined: Mon Jun 09, 2014 9:49 pm
Location: among the sagebrush
Contact:

Re: [SOLVED] How do I change my Bash profile?

Unread post by Dr_Chroot » Mon Nov 03, 2014 10:42 pm

Ah! I forgot about the wiki :facepalm:

Thanks rho!
Fight internet censorship.
EFF | Tor Project | Bitcoin

"There have been times throughout American history where what is right is not the same as what is legal. Sometimes to do the right thing you have to break the law." - Edward Snowden

User avatar
rhowaldt
Dog
Posts: 4565
Joined: Wed Oct 17, 2012 9:01 am
Contact:

Re: [SOLVED] How do I change my Bash profile?

Unread post by rhowaldt » Tue Nov 04, 2014 10:20 am

no problem doctor :)
All statements are true in some sense, false in some sense, meaningless in some sense, true and false in some sense, true and meaningless in some sense, false and meaningless in some sense, and true and false and meaningless in some sense.

Post Reply