Setting local variables: Difference between revisions

From HPCwiki
Jump to navigation Jump to search
Megen002 (talk | contribs)
Megen002 (talk | contribs)
Line 4: Line 4:


=== Adding custom directories to the system PATH ===
=== Adding custom directories to the system PATH ===
<source lang='bash'>


PATH=$PATH:$HOME/bin:$HOME/bin/bin
PATH=$PATH:$HOME/bin:$HOME/bin/bin


export PATH
export PATH
</source>


=== Increase number of commands remembered in the history ===
=== Increase number of commands remembered in the history ===

Revision as of 16:01, 8 December 2013

Environment Variables

Modify .bashrc and .bash_profile

Adding custom directories to the system PATH

PATH=$PATH:$HOME/bin:$HOME/bin/bin

export PATH

Increase number of commands remembered in the history

# Maximum numbers of lines that can be written to the file
export HISTFILESIZE=100000

# Change this to a reasonable number of lines to save
export HISTSIZE=100000

See also

External links