Skip to content

Instantly share code, notes, and snippets.

@YazeedAlKhalaf
Last active July 23, 2020 20:04
Show Gist options
  • Save YazeedAlKhalaf/2e063e344b3f3f4bb99a79c601e17a13 to your computer and use it in GitHub Desktop.
Save YazeedAlKhalaf/2e063e344b3f3f4bb99a79c601e17a13 to your computer and use it in GitHub Desktop.
This is a simple script for appending a path to PATH environment variable
#!/bin/sh
# Author: Yazeed AlKhalaf
# This is a simple script for appending a path to PATH environment variable
echo "" >> ~/.bashrc
echo "export PATH=\"\$PATH:$1\"" >> ~/.zshrc
#!/bin/sh
# Author: Yazeed AlKhalaf
# This is a simple script for appending a path to PATH environment variable
echo "" >> ~/.bashrc
echo "export PATH=\"\$PATH:$1\"" >> ~/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment