TCLUG Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [TCLUG:17715] Aliasing
My whole point of doing this is because I type 'ps aux' out
of habit, instead of 'ps -ef'. Changing it to be ps-script isn't
going to help me at all, here. ;) I just want my bad habits to
work. Sneef!
Nick Reinking
hick0088@tc.umn.edu, on 05/16/2000 11:31:16 AM
To: tclug-list@mn-linux.org @ PMDF
cc:
Subject: Re: [TCLUG:17715] Aliasing
Nick.T.Reinking@supervalu.com wrote:
>
> No, no. I know how aliasing works. But I need to alias
> something with a space in it, and nothing works. I've tried:
>
> alias 'ps aux'='ps -ef'
> and
> alias 'ps\ aux'='ps -ef'
> and
> alias ps\aux='ps -ef'
> etc...
Maybe it would be better to make a shell script.. ps-script or
something. It would look something like (I'm sure my syntax is broken
somewhere ;-)
#!/bin/sh
if [ "$1" == "aux" ]; then
ps -ef
else
ps $*
fi
then just alias the script to `ps'..
alias 'ps'='ps-script'
--
_ _ _ _ _ ___ _ _ _ ___ _ _ __ Who is "they" anyway?
/ \/ \(_)| ' // ._\ / - \(_)/ ./| ' /(__
\_||_/|_||_|_\\___/ \_-_/|_|\__\|_|_\ __)
[ Mike Hicks | http://umn.edu/~hick0088/ | mailto:hick0088@tc.umn.edu ]
---------------------------------------------------------------------
To unsubscribe, e-mail: tclug-list-unsubscribe@mn-linux.org
For additional commands, e-mail: tclug-list-help@mn-linux.org