Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # @description: add this file to path /bin/
- # set_env_var variable_name variable value
- VAR=$1
- VAL=$2
- set_env_v () {
- echo 'export '$1'='$2 >> /home/$USER/.bashrc
- }
- set_env_v $VAR $VAL
Add Comment
Please, Sign In to add comment