[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Bash scripts for idiots...
- Subject: [ale] Bash scripts for idiots...
- From: ivey at realminfo.com (michael D. ivey)
- Date: Sat, 6 Nov 1999 18:55:10 +0000
On Fri, Nov 05, 1999 at 10:14:31PM -0600, Benjamin Scherrey wrote:
> I appreciate the idea but I really want to do more than just that.
> Only, I need it to run within the current environment and make any
> changes persist within my session. An alias can't do it all. I can't
> believe this isn't a very simple basic thing to do (like a DOS batch
> file).
try a function. in your .bashrc:
mycd() {
cd /some/dir
do
something
done
echo "still in /some/dir"
}
--
-- michael d. ivey, lead engineer, applianceware (tm) ------------------
------ realm information technologies <http://realminfo.com> ----------
------------------------------------------------------------------------
"You can't invent a future with magic bullets or buzzwords." - R. Rodin