3. Put this in your ~/.inputrc
# Produce list of all possible completions at single tab
set show-all-if-ambiguous on
4. ?
5. You can set a 'trap':
$ trap echo Exit $?; ERR
$ wc /tmp/qqwoieuqo
wc: /tmp/qqwoieuqo: No such file or directory
Exit 1
$ trap - ERR
My mistake, the 'trap' of (5) needs to be defined within single quotes
to prevent the $? from expanding too soon:
$ trap 'echo Exit $?' ERR
Freddy Vulto
Simos wrote:
4. Does the 'set watch(0 any any)' command in tcsh have an equivalent
in bash; It makes the shell to keep track of /var/log/wtmp, and report
when other users login/logout.
There was a thread in 2000 at
http://www.linux.ie/old-list/17375.html
Is there a built-in command for this
Thanks Paul, Freddy, Chet.
Regarding printexitvalue, I use
trap '__exit_value_bashrc=$?; if [ $__exit_value_bashrc -ne 0 ]; then
echo Exit $__exit_value_bashrc; fi' ERR
so that an exit value is printed when it is other than 0.
I pushed all changes to
http://github.com/simos/bashrc/
Cheers,
2009-02-3, 19:38(+00), Simos:
[...]
I have been using tcsh for a long time and I plan to move to bash.
[...]
I'd recommend moving to zsh instead. The transition is easier
from tcsh and this way to won't have to move from bash to zsh
later on.
--
Stéphane
Simos simos.li...@googlemail.com 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
On Tue, Feb 3, 2009 at 9:24 PM, Stephane CHAZELAS
stephane_chaze...@yahoo.fr wrote:
2009-02-3, 19:38(+00), Simos:
[...]
I have been using tcsh for a long time and I plan to move to bash.
[...]
I'd recommend moving to zsh instead. The transition is easier
from tcsh and this way to won't have
Hi All,
I have been using tcsh for a long time and I plan to move to bash.
I am trying to replicate my config scripts and I have stumbled on the
following issues. My question is whether bash can do these tasks or
whether they can (hopefully) be added as features in a new version.
1. I have