You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

install 348B

1234567891011121314151617
  1. #! /usr/bin/env bash
  2. dir="$(dirname $(readlink -f "${0}"))"
  3. for file in bash_aliases bash_preexec bash_preexec_hooks bashrc git-prompt.sh nma_exclude
  4. do
  5. if [ -e ~/."${file}" ]
  6. then
  7. if [ -h ~/."${file}" ]
  8. then
  9. rm ~/."${file}"
  10. else
  11. mv ~/."${file}" ~/."${file}.old"
  12. fi
  13. fi
  14. ln -s "${dir}/${file}" ~/."${file}"
  15. done