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

Next revision
Previous revision
bash:functions:local_vs_global_functions [2020/05/16 13:08] – created peterbash:functions:local_vs_global_functions [2020/07/15 09:30] (current) – external edit 127.0.0.1
Line 12: Line 12:
  
 We use **/etc/profile.d/bash_functions.sh**. We use **/etc/profile.d/bash_functions.sh**.
- 
  
 <WRAP info> <WRAP info>
Line 39: 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 file ./bashrc>+<file bash ~/.bashrc> 
 +if [ -f ~/.bash_functions ]; then 
 +    . ~/.bash_functions 
 +fi 
 +</file> 
 + 
 +or 
 + 
 +<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.1589634530.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki