[pardon the cross posting but i felt this was plenty nifty enough to
post to the three lug lists i'm on]
to use simply add this to your ~/.profile, .bashrc, .zshrc or what have
you. this should work for bash, ksh, zsh, and possibly others.
--snip--snip--snip--
function scrssh { screen -t "$@" ssh "$@"; }
function cdmkdir { mkdir "$1"; cd "$1"; }
function cdls {
# $1 -- <optional> directory you want to change too
# use pushd so that you can later use popd and dirs
# ghettomodel --> function cdls { cd "$1"; ls -F; }
# [email protected] 2010-07-20
#--------------------------------------------------
if [ ! -z "$1" ]; then
pushd "$1"; # GOTO DIR
else # dblquotes catch poorly named dirs
pushd ~; # GOTO $HOME
fi
# do the listing
ls -F
}
alias cd=cdls
alias open=gnome-open
--snip--snip--snip--
this creates three alias/functions
scrssh
cdmkdir
cdls (aliased to just cd)
they do very useful things... much more useful than the lls and la
aliases some people keep laying around.
--timball
--
GPG key available on pgpkeys.mit.edu
pub 1024D/511FBD54 2001-07-23 Timothy Lu Hu Ball <[email protected]>
Key fingerprint = B579 29B0 F6C8 C7AA 3840 E053 FE02 BB97 511F BD54
--
You received this message because you are subscribed to the Google Groups
"NLUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nlug-talk?hl=en