create_bin_directory.sh 153 B

123456789101112
  1. #!/bin/bash
  2. # fail if any commands fails
  3. set -e
  4. # debug log
  5. #set -x
  6. cd || return
  7. mkdir -p ~/bin
  8. echo "PATH=\$PATH:~/bin/" >>~/.bashrc
  9. source ~/.bashrc