Guest User

Untitled

a guest
Jul 16th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #!/bin/bash
  2. # @description: add this file to path /bin/
  3. # set_env_var variable_name variable value
  4. VAR=$1
  5. VAL=$2
  6.  
  7. set_env_v () {
  8. echo 'export '$1'='$2 >> /home/$USER/.bashrc
  9. }
  10.  
  11. set_env_v $VAR $VAL
Add Comment
Please, Sign In to add comment