Basic Linux and Application Configuration Locate to ~/.config
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.

34 lines
654B

  1. #!/bin/bash
  2. # <relative location to $PWD>:<absolute path of link>
  3. LINKS="
  4. bash:~/.bash
  5. bash/bash_login:~/.bash_login
  6. bash/bash_logout:~/.bash_logout
  7. bash/bash_profile:~/.bash_profile
  8. bash/bashrc:~/.bashrc
  9. screenlayout:~/.screenlayout
  10. vim:~/.vim
  11. vim/vimrc:~/.vimrc
  12. Xdefaults:~/.Xdefaults
  13. "
  14. SUDO="
  15. fonts:/usr/share/fonts
  16. icons:/usr/share/icons
  17. "
  18. for i in $LINKS; do
  19. DEST="$PWD/`echo $i | cut -d: -f1`"
  20. LINK=`echo $i | cut -d: -f2 | sed -E "s#~#$HOME#"`
  21. CMD="ln -s $DEST $LINK"
  22. eval $CMD
  23. done
  24. for i in $SUDO; do
  25. DEST="$PWD/`echo $i | cut -d: -f1`"
  26. LINK=`echo $i | cut -d: -f2`
  27. CMD="sudo ln -s $DEST $LINK"
  28. eval $CMD
  29. done