Order of the Butterfly
Posts: 464 from 2003/7/25
From: Wroclaw/Poland
I wanted to add aliasses which will be available after reboot the system.
In MOSSYS:S exists file shell-startup where we can read:
Code:
;
; MorphOS shell-startup
;
; This script is executed on every new shell invocation.
; Do *NOT* modify this file. If you want to change something,
; copy this file to S: and make the changes there.
;
; $VER: shell-startup 1.3
;
Prompt "%S> "
set _pchar "|"
set _mchar "&&"
alias flow "run DETACH sys:Applications/FlowStudio/FlowStudio"
Ok, I copied the
shell-startup file to
SYS:S/, added my aliasses below
"flow" alias. Everything works well.
However I am not sure if this is good solution. If in a future a new version of the MorphOS add something to
MOSSYS:S/shell-startup, it won't work in my system because
MOSSYS:S/shell-startup is ignored if
SYS:S/shell-startup file exists (I checked this).
I am thinking... Is it possible to keep executing original
shell-startup before user's
shell-startup?
Or maybe better solution is just add my aliasses to
SYS:S/user-startup?
What do you think?
Which solution is the most consistent with the MorphOS guidelines?