Skip to content

Commit

Permalink
Document where to put env definitions for non-Windows platforms (#11042)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwheeler authored Apr 22, 2024
1 parent 2e4be7e commit dbf1a67
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,21 @@ System Control Panel:
## Create persistent environment variables on non-Windows platforms

Linux and macOS have configuration files and scripts that the operating system
uses to set environment variables before starting an application. For example
on Linux, you can add environment variables to the `/etc/environment` file or
create a script that sets environment variables and put it in the
`/etc/profile.d` folder. On macOS, you can add environment variables to the
`/etc/zshrc` file. For more information, see the documentation for your
operating system.
uses to set environment variables before starting an application.

When running PowerShell as the default (login) shell, you can define
environment variables in the global initialization files supported by the
operating system. For example on Linux, you can add environment variables to
the `/etc/environment` file or create a script that sets environment variables
and put it in the `/etc/profile.d` folder. On macOS, you can add environment
variables to the `/etc/profile` file.

When starting PowerShell from another shell, you can define environment
variables in the shell-specific initialization files used by non-login shells,
such as `~/.bashrc` for `bash` or `~/.zshrc` for `zsh`.

For more information, see the documentation for your operating system and
default shell.

## PowerShell environment variables

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,21 @@ System Control Panel:
## Create persistent environment variables on non-Windows platforms

Linux and macOS have configuration files and scripts that the operating system
uses to set environment variables before starting an application. For example
on Linux, you can add environment variables to the `/etc/environment` file or
create a script that sets environment variables and put it in the
`/etc/profile.d` folder. On macOS, you can add environment variables to the
`/etc/zshrc` file. For more information, see the documentation for your
operating system.
uses to set environment variables before starting an application.

When running PowerShell as the default (login) shell, you can define
environment variables in the global initialization files supported by the
operating system. For example on Linux, you can add environment variables to
the `/etc/environment` file or create a script that sets environment variables
and put it in the `/etc/profile.d` folder. On macOS, you can add environment
variables to the `/etc/profile` file.

When starting PowerShell from another shell, you can define environment
variables in the shell-specific initialization files used by non-login shells,
such as `~/.bashrc` for `bash` or `~/.zshrc` for `zsh`.

For more information, see the documentation for your operating system and
default shell.

## PowerShell environment variables

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,21 @@ System Control Panel:
## Create persistent environment variables on non-Windows platforms

Linux and macOS have configuration files and scripts that the operating system
uses to set environment variables before starting an application. For example
on Linux, you can add environment variables to the `/etc/environment` file or
create a script that sets environment variables and put it in the
`/etc/profile.d` folder. On macOS, you can add environment variables to the
`/etc/zshrc` file. For more information, see the documentation for your
operating system.
uses to set environment variables before starting an application.

When running PowerShell as the default (login) shell, you can define
environment variables in the global initialization files supported by the
operating system. For example on Linux, you can add environment variables to
the `/etc/environment` file or create a script that sets environment variables
and put it in the `/etc/profile.d` folder. On macOS, you can add environment
variables to the `/etc/profile` file.

When starting PowerShell from another shell, you can define environment
variables in the shell-specific initialization files used by non-login shells,
such as `~/.bashrc` for `bash` or `~/.zshrc` for `zsh`.

For more information, see the documentation for your operating system and
default shell.

## PowerShell environment variables

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,12 +314,21 @@ System Control Panel:
## Create persistent environment variables on non-Windows platforms

Linux and macOS have configuration files and scripts that the operating system
uses to set environment variables before starting an application. For example
on Linux, you can add environment variables to the `/etc/environment` file or
create a script that sets environment variables and put it in the
`/etc/profile.d` folder. On macOS, you can add environment variables to the
`/etc/zshrc` file. For more information, see the documentation for your
operating system.
uses to set environment variables before starting an application.

When running PowerShell as the default (login) shell, you can define
environment variables in the global initialization files supported by the
operating system. For example on Linux, you can add environment variables to
the `/etc/environment` file or create a script that sets environment variables
and put it in the `/etc/profile.d` folder. On macOS, you can add environment
variables to the `/etc/profile` file.

When starting PowerShell from another shell, you can define environment
variables in the shell-specific initialization files used by non-login shells,
such as `~/.bashrc` for `bash` or `~/.zshrc` for `zsh`.

For more information, see the documentation for your operating system and
default shell.

## PowerShell environment variables

Expand Down

0 comments on commit dbf1a67

Please sign in to comment.