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.
 
 
 

33 lines
654 B

#!/bin/bash
# <relative location to $PWD>:<absolute path of link>
LINKS="
bash:~/.bash
bash/bash_login:~/.bash_login
bash/bash_logout:~/.bash_logout
bash/bash_profile:~/.bash_profile
bash/bashrc:~/.bashrc
screenlayout:~/.screenlayout
vim:~/.vim
vim/vimrc:~/.vimrc
Xdefaults:~/.Xdefaults
"
SUDO="
fonts:/usr/share/fonts
icons:/usr/share/icons
"
for i in $LINKS; do
DEST="$PWD/`echo $i | cut -d: -f1`"
LINK=`echo $i | cut -d: -f2 | sed -E "s#~#$HOME#"`
CMD="ln -s $DEST $LINK"
eval $CMD
done
for i in $SUDO; do
DEST="$PWD/`echo $i | cut -d: -f1`"
LINK=`echo $i | cut -d: -f2`
CMD="sudo ln -s $DEST $LINK"
eval $CMD
done