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.
|
|