[SATLUG] Alias problem
Kevin Flanagan
koflanagan at satx.rr.com
Sat Mar 4 08:59:43 CST 2006
Mike Wallace wrote:
>Hi everyone,
>
>I'm having a major brain fart at the moment. I want to either create
>or reset an alias from a script rather than the shell. So, imagine
>you have something basic like:
>
>#!/bin/bash
>alias my_alias="/path/to/some/command"
>
>The alias only remains set for the scope of the script. How do you
>propogate the alias to the environment? As it stands right now, the
>environment isn't changed. I thought there would be some kind of
>"export" option, but I can't seem to turn up anything. TIA,
>
>-Mike
>
>
Mike,
I may be wrong, try putting that line in your .bashrc.
More information about the SATLUG
mailing list