Added a couple of new restart scripts, moved them all to the System directory. Updated the install script to symlink to the Nautilus scripts. Removed the Move Unity script as the issue I was having no longer exists in 11.10, but more importantly, I moved off Unity to GnomeShell so even if it still existed... yeah.
32 lines
624 B
Bash
Executable file
32 lines
624 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# TODO check if fortune-mod is installed and if not, install it
|
|
|
|
# Clears out the old .bashrc
|
|
if [ -f ~/.bashrc ];
|
|
then
|
|
rm ~/.bashrc
|
|
fi
|
|
|
|
# Grabs the skeleton .bashrc
|
|
cp /etc/skel/.bashrc ~/.bashrc
|
|
|
|
PWD=`pwd`
|
|
|
|
# Adds paths
|
|
echo "export PATH=\"$PWD/git:$PATH\"" >> ~/.bashrc
|
|
|
|
# Appends the custom .bashrc file
|
|
echo "
|
|
if [ -f $PWD/bash.bashrc ] && ! shopt -oq posix; then
|
|
. $PWD/bash.bashrc
|
|
fi" >> ~/.bashrc
|
|
|
|
# Removes the existing scripts
|
|
if [ -d ~/.gnome2/nautilus-scripts ];
|
|
then
|
|
rm ~/.gnome2/nautilus-scripts -rf
|
|
fi
|
|
|
|
# Symlinks back to our scripts
|
|
ln -s $PWD/nautilus-scripts ~/.gnome2/nautilus-scripts
|