User Tools

Site Tools


bash:functions:local_vs_global_functions

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
bash:functions:local_vs_global_functions [2020/05/16 13:10] peterbash:functions:local_vs_global_functions [2020/07/15 09:30] (current) – external edit 127.0.0.1
Line 38: Line 38:
 Have your .bashrc load it, by adding the following to the ./bashrc file: Have your .bashrc load it, by adding the following to the ./bashrc file:
  
-<code bash>+<file bash ~/.bashrc>
 if [ -f ~/.bash_functions ]; then if [ -f ~/.bash_functions ]; then
     . ~/.bash_functions     . ~/.bash_functions
 fi fi
-</code>+</file>
  
 or or
  
-<code file ./bashrc>+<file bash ~/.bashrc>
 if [ -e $HOME/.bash_functions ]; then if [ -e $HOME/.bash_functions ]; then
     source $HOME/.bash_functions     source $HOME/.bash_functions
bash/functions/local_vs_global_functions.1589634655.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki