install.sh (974B)
1 #!/bin/bash 2 #for CFGFOLDER in `find $HOME/plugfiles/.config/ -maxdepth 1` 3 4 PLUGLOC=$HOME/plugfiles 5 CFGLOC=$HOME/.config 6 BINLOC=$HOME/.local/bin 7 8 #[ -f $CFGLOC ] || mkdir $CFGLOC 9 #[ -f $BINLOC ] || mkdir $BINLOC 10 11 mkdir -p $CFGLOC 12 mkdir -p $BINLOC 13 14 for CFGFOLDER in $PLUGLOC/.config/*/ 15 do 16 FOLDERNAME=$(basename $CFGFOLDER) 17 18 OLDDIR=$CFGLOC/$FOLDERNAME/ 19 20 [ -d "$OLDDIR" ] && echo "deleting $OLDDIR" && rm -r $OLDDIR 21 cp -R "$CFGFOLDER" "$OLDDIR" 22 done 23 24 cp -r $PLUGLOC/bin/* $BINLOC/ 25 26 [ -f "$CFGLOC/.aliasrc" ] && rm "$CFGLOC/.aliasrc" 27 cp "$PLUGLOC/.config/.aliasrc" "$CFGLOC/.aliasrc" 28 cp "$PLUGLOC/.config/compton.conf" "$CFGLOC/compton.conf" 29 cp "$PLUGLOC/.config/emoji" "$CFGLOC/emoji" 30 cp "$PLUGLOC/starshell.sh" "$CFGLOC/starshell.sh" 31 cp -r "$PLUGLOC/.config/starshell" "$CFGLOC/starshell" 32 33 ln -svf "$PLUGLOC/.bash_profile" ~ 34 ln -svf "$PLUGLOC/.bash_profile" ~/.profile 35 ln -svf "$PLUGLOC/.bashrc" ~ 36 ln -svf "$PLUGLOC/.inputrc" ~ 37 38 39 source "$PLUGLOC/.bash_profile"