#!/bin/bash

echo "performing standard ops..."

SHDIR=sh

cp --preserve ".bashrc" ~
cp --preserve ".bash_aliases" ~
cp --preserve ".vimrc" ~
cp --preserve ".nanorc" ~
cp --preserve ".emacs" ~
mkdir --parents ~/.local/share/gtksourceview-3.0/styles
cp --preserve "jcd.xml" ~/.local/share/gtksourceview-3.0/styles/
cp --preserve ./templates/* ~/Templates/

#unzip -o vimacs-master.zip
#mkdir -p $HOME/.vim/doc
#mkdir -p $HOME/.vim/plugin
#cp -R vimacs-master/doc vimacs-master/plugin $HOME/.vim
#vim --cmd "helptags $HOME/.vim/doc" --cmd "q"
#rm -rf vimacs-master

mkdir -p ~/.config/sublime-text-3/Packages/User/
mkdir -p ~/.config/sublime-text-3/Packages/Custom\ Color\ Schemes/
cp --preserve "Preferences.sublime-settings" ~/.config/sublime-text-3/Packages/User/
cp --preserve "Default.sublime-keymap" ~/.config/sublime-text-3/Packages/User/
cp --preserve "jcd.tmTheme" ~/.config/sublime-text-3/Packages/Custom\ Color\ Schemes/

if [[ "$EUID" = 0 ]];
then
    echo "performing root ops..."
    cp --preserve "$SHDIR/spinoff" /usr/local/bin/
    cp --preserve "$SHDIR/ritnetreg" /usr/local/bin/
    cp --preserve "$SHDIR/git-cpm" /usr/local/bin/
fi

echo "done."


#!/bin/bash

echo "performing standard ops..."

SHDIR=sh

cp --preserve ".bashrc" ~
cp --preserve ".bash_aliases" ~
cp --preserve ".vimrc" ~
cp --preserve ".nanorc" ~
cp --preserve ".emacs" ~
mkdir --parents ~/.local/share/gtksourceview-3.0/styles
cp --preserve "jcd.xml" ~/.local/share/gtksourceview-3.0/styles/
cp --preserve ./templates/* ~/Templates/

mkdir -p ~/.config/sublime-text-3/Packages/User/
mkdir -p ~/.config/sublime-text-3/Packages/Custom\ Color\ Schemes/
cp --preserve "Preferences.sublime-settings" ~/.config/sublime-text-3/Packages/User/
cp --preserve "Default.sublime-keymap" ~/.config/sublime-text-3/Packages/User/
cp --preserve "jcd.tmTheme" ~/.config/sublime-text-3/Packages/Custom\ Color\ Schemes/

if [[ "$EUID" = 0 ]];
then
    echo "performing root ops..."
    cp --preserve "$SHDIR/spinoff" /usr/local/bin/
    cp --preserve "$SHDIR/ritnetreg" /usr/local/bin/
    cp --preserve "$SHDIR/git-cpm" /usr/local/bin/
fi

echo "done."


Remove unused vimacs setup commands
Remove unused vimacs setup commands
