AddSettings

Add settings of SessionManager.

Find a file where settings are:
the directory that you get by input follows. find out SALADROOT.bootstrap.
[SALAD]
$SessionManager.GetValue("system.session.directory.bootstrap");

To see the folder with explorer directory, follows.
[SALAD]
explorer $SessionManager.GetValue("system.session.directory.bootstrap");

The folder has a file named initialize_userenv.ps1.
And this file has the settings of user-environment, not system-environment.
So you can modify SessionRegistry.

initialize_userenv.ps1
param()
$global:SessionManager = $SessionManager.Add("user.url.google", "http://www.google.co.jp/");

To add global definition, write like this.
For example, adding that "MyName" as the name and UserName as the value.
param()
$global:SessionManager = $SessionManager.Add("user.url.google", "http://www.google.co.jp/");
$global:SessionManager = $SessionManager.Add("MyName", $ENV:UserName);

In next session, the users can use it like this.
And tab expansion works too.
[SALAD]
$SessionManagger.GetValue("MyName");

Last edited Mar 3, 2013 at 1:13 PM by Tom__S, version 8

Comments

No comments yet.