Setting local variables: Difference between revisions

From HPCwiki
Jump to navigation Jump to search
No edit summary
m (<source> to <pre> to fix code blocks)
 
(5 intermediate revisions by 3 users not shown)
Line 3: Line 3:
== Modify <code>.bashrc</code> and <code>.bash_profile</code> ==
== Modify <code>.bashrc</code> and <code>.bash_profile</code> ==


=== Adding custom directories to the system PATH ===
<pre>
PATH=$PATH:$HOME/bin:$HOME/bin/bin
export PATH
</pre>
=== Increase number of commands remembered in the history ===
<pre>
# 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
</pre>


== See also ==
== See also ==
* [[Anunna | Anunna]]
* [[Lx6_and_Lx7_compute_nodes | Lx6 and Lx7 compute nodes]]
* [[Create_shortcut_log-in_command | Create a shortcut for the ssh log-in command]]
* [[Installing_R_packages_locally | Installing R packages locally]]


== External links ==
== External links ==

Latest revision as of 10:42, 22 June 2023

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