Setting local variables: Difference between revisions

From HPCwiki
Jump to navigation Jump to search
Line 11: Line 11:
=== Increase number of commands remembered in the history ===
=== Increase number of commands remembered in the history ===


 
<source lang='bash'>
# Maximum numbers of lines that can be written to the file
# Maximum numbers of lines that can be written to the file
export HISTFILESIZE=100000
export HISTFILESIZE=100000
Line 17: Line 17:
# Change this to a reasonable number of lines to save
# Change this to a reasonable number of lines to save
export HISTSIZE=100000
export HISTSIZE=100000
</source>


== See also ==
== See also ==

Revision as of 16:00, 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

<source lang='bash'>

  1. Maximum numbers of lines that can be written to the file

export HISTFILESIZE=100000

  1. Change this to a reasonable number of lines to save

export HISTSIZE=100000 </source>

See also

External links