Posted by: jasonk2600 | December 1, 2009

Tip – Permanently Setting Environment Variables in FreeBSD

Environment variables can be setup persistently by putting them in a startup file for your shell.  This file depends upon the shell that you are using:

  • csh and tcsh – .login
  • bash, ksh, zsh, and sh – .profile

Ksh, zsh, and sh require you to export the variable after setting it:

 

VARIABLE_NAME="Something"
export VARIABLE_NAME

 

  [EoF]
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Categories

%d bloggers like this: