Started building an install script
This commit is contained in:
parent
97f3e684eb
commit
db9d80b96b
1 changed files with 18 additions and 0 deletions
18
install.sh
Executable file
18
install.sh
Executable file
|
@ -0,0 +1,18 @@
|
||||||
|
#!/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
|
||||||
|
|
||||||
|
# Appends the custom .bashrc file
|
||||||
|
echo "
|
||||||
|
if [ -f `pwd`/bash.bashrc ] && ! shopt -oq posix; then
|
||||||
|
. `pwd`/bash.bashrc
|
||||||
|
fi" >> ~/.bashrc
|
Loading…
Add table
Add a link
Reference in a new issue