bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Migrating from tcsh to bash (issues)


From: Paul Jarc
Subject: Re: Migrating from tcsh to bash (issues)
Date: Tue, 03 Feb 2009 15:01:11 -0500
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Simos <address@hidden> wrote:
> alias -- ../='cd ..'
> alias -- .../='cd ../..'
> alias -- /='cd /'

You can do those as shell functions:
../() { cd ../; }
.../() { cd ../..; }
/() { cd /; }

> 2. An issue with PS1 is that there is no \w or \W version that can
> expand the ~. My aim is to get to show the full pathname at all times.

Use $PWD.

I don't know about #3 or #4.

> 5. Is there an option in bash to print the exit value of commands?

You can use $? or address@hidden in $PS1 or $PROMPT_COMMAND.


paul




reply via email to

[Prev in Thread] Current Thread [Next in Thread]