View Full Version : Showing Path In Bash Shell
JackRazz
03-16-2007, 04:11 PM
Is there a simple way of showing the current directory I'm in when using the bash shell in Tivo?
It would make life a little easier.
Thanks - JackRazz
BTUx9
03-16-2007, 04:32 PM
the bash prompt is controlled by the PS1 env var... "\w" in it is substituted with the working dir... google for other bash prompt strings
mphare
03-16-2007, 04:41 PM
export PS1="\w> "
Gargoyle557
03-16-2007, 05:08 PM
Here is what I use:
PS1='\n${PWD}\nMaster Bedroom\n\$ '
Looks like this:
/var/tmp
Master Bedroom
#
JackRazz
03-17-2007, 02:57 AM
Thanks everyone for the great tips on my Bash prompt.
I ended up doing:
export PS1="root@Tivo:\w$ "
which seems consistant with what I use in Ubuntu. Now on to my next hack. I'm reading about bufferhack for a series 1(:
JackRazz
PortlandPaw
03-17-2007, 06:34 PM
Info about bufferhack is included in hackman along with a link to the hackman add-in file distributed by JJBliss.
JackRazz
03-18-2007, 02:23 AM
Hey PortlandLaw,
I don't have a network card in my Series 1. I have plenty of hard disk space as I just replaced my failing drive with a 160 GB Seagate :) . Would hackman still be the place to look if I want to apply the bufferhack?
Thanks - JackRazz
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.