Welcome, Guest. Please login or register.

Author Topic: Autostart alias script at boot  (Read 1672 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Zac67

  • Hero Member
  • *****
  • Join Date: Nov 2004
  • Posts: 2890
    • Show all replies
Re: Autostart alias script at boot
« on: September 24, 2012, 06:17:13 PM »
Code: [Select]
alias ls "ls -l"That may cause recursion - depending of the shell. Usually 'ls -l' is aliased to 'll'. ;)

Paths, environment etc. are inherited from the parent process - so for a shell launched from Workbench it's initially the same as Workbench's. Workbench is started from startup-sequence (or rather the boot shell running startup-sequence), so it inherits its environment from the boot shell.

Aliases are not inherited, so you need to add them to shell-startup.

Assigns are system-global, no matter by whom and when they are made.
« Last Edit: September 24, 2012, 06:23:37 PM by Zac67 »