Home Messages Index
[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index

Re: Setting up aliases outside .bashrc

  • Subject: Re: Setting up aliases outside .bashrc
  • From: houghi <houghi@houghi.org.invalid>
  • Date: Thu, 14 Jul 2005 11:33:11 -0000
  • Mail-copies-to: nobody
  • Newsgroups: alt.os.linux.suse
  • Organization: No HTML on Usenet
  • References: <db524j$kji$1@godfrey.mcc.ac.uk> <3jmkpdFqqcdiU1@news.dfncis.de>
  • Reply-to: reply.to.server@your.provider.invalid
  • User-agent: slrn/0.9.8.0 (Linux)
  • Xref: news.mcc.ac.uk alt.os.linux.suse:186804
Arne Schmitz wrote:
> Roy Schestowitz schrieb:
>
>> Is there some scope
>> limitation? Do they expire when scripts apart from .bashrc end?
>
> You have to source the script, not execute it from .bashrc. Sourcing is done
> like this:
>
>         . yourscript.sh
>
> Without the leading tab, of course.

I have the following in my bashrc:
test -s ~/.alias && . ~/.alias

Then I put my aliasses in `.alias`
alias newspost="newspost -v -e /home/houghi/newspost.txt"
alias ldir='ls -l|grep "^d"'
alias r90="mogrify -rotate 90 "
alias r270="mogrify -rotate 270 "
alias r180="mogrify -rotate 180 "
<snip>

That line is in there by default. No idea what the OP wants to put in as
script, because aliasses are aliasses. A script is something different.
-- 
houghi						      http://houghi.org
>
All my postings should  be read as if each line has a smiley behind it,
unless indicated  otherwise, including the signature.

[Date Prev][Date Next][Thread Prev][Thread Next]
Author IndexDate IndexThread Index