On Wed, Sep 13, 2000 at 11:57:20PM +0200, Julio Merino ([EMAIL PROTECTED])
wrote:
> Hi all,
>
> NOTE that this is OFFTOPIC.
>
> would you like to recognize fastly if you're a normal user or root?
> Change the default debian PS1 to something like this for your user:
>
> PS1='\[\e[22m\e[40m\e
Oh, another thing I've added to remember how many jobs I have in the
background. This only apperes where there are jobs, but if not, it
doesn't apperes.
function jobcount {
JOBS=`jobs | wc -l | awk {'print $1'}`
[ $JOBS != 0 ] && echo -n "$JOBS:"
}
PS1='\[\e[22m\e[40m\e[32m\]\h:`jobcount`\
If your shell is bash then zou can create aliases. Write in .bashrc something
like
alias cd='cd ../../..'
This allows you to type cd on the command line to go 3 directories up.
Sven
At Sat, 16 Sep 2000 09:40:07 +0100 (BST),
Simon Hales <[EMAIL PROTECTED]> wrote:
>
> On Thu, 14 Sep 2000,
On Thu, 14 Sep 2000, J.P. Larocque wrote:
>On an unrelated note, I'm *fairly* new to Linux (or UNIX in general), only
>having been using it for about a year. In the DOS command-interpreter 4DOS,
>I could refer to parent directories as . and .. as is the norm in DOS and UNIX.
>But I could also typ
i know - i'm replying to my own post ... :)
unquoted lines are changed
> cd() {
local p="$1"
> while :; do
local np="${p//.../../..}"
> test "$p" == "$np" && break
> p="$np"
> done
> builtin cd "$p"
> }
greetings
--
Hi! I'm a .signature virus! Copy me into your ~/.sig
> On an unrelated note, I'm *fairly* new to Linux (or UNIX in general), only
> having been using it for about a year. In the DOS command-interpreter 4DOS,
> I could refer to parent directories as . and .. as is the norm in DOS and
> UNIX.
> But I could also type, say, "cd ", which would be eq
On Wed, Sep 13, 2000 at 11:57:20PM +0200, Julio Merino wrote:
> would you like to recognize fastly if you're a normal user or root?
> Change the default debian PS1 to something like this for your user:
>
> PS1='\[\e[22m\e[40m\e[32m\]\h:\w\$\[\e[22m\e[40m\e[37m\] '
My /etc/profile has the long
7 matches
Mail list logo