You are not logged in.

#1 2009-05-08 03:43:17

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

[Solved] Setting a custom PS1

how can I append arch32 to my ps1? i just set up a chroot environment and constantly want to remind myself that im in it when i use it.  i'd like it in this format if possible: user@host(arch32) current directory

Last edited by brando56894 (2009-05-09 07:14:59)

Offline

#2 2009-05-08 03:45:35

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [Solved] Setting a custom PS1

export PS1="\u@\h(arch32) \w \$ "

Offline

#3 2009-05-08 04:11:02

Peasantoid
Member
Registered: 2009-04-26
Posts: 928
Website

Re: [Solved] Setting a custom PS1

^ Stick that in your ~/.bashrc (or the one in the chroot, whichever applies).

Offline

#4 2009-05-09 07:11:39

brando56894
Member
From: NYC
Registered: 2008-08-03
Posts: 681

Re: [Solved] Setting a custom PS1

thanks i wasnt sure if you were able to add strings to it without a special escape character or something.

Offline

Board footer

Powered by FluxBB