Finish rewrite
This commit is contained in:
parent
623aa5bb7a
commit
b018c865bc
1 changed files with 16 additions and 12 deletions
|
@ -150,8 +150,6 @@ separator
|
|||
|
||||
# }}}
|
||||
|
||||
exit
|
||||
|
||||
# Configure Git {{{
|
||||
|
||||
echo "Configuring Git..."
|
||||
|
@ -170,8 +168,11 @@ separator
|
|||
|
||||
echo "Installing Rust..."
|
||||
if rustc --version; then
|
||||
echo "${GREEN}Rust is already intalled. Updading...${NC}"
|
||||
rustup update
|
||||
echo "${GREEN}Rust is already intalled${NC}"
|
||||
if [ "$UPDATE" = 'true' ]; then
|
||||
echo "Updading..."
|
||||
rustup update
|
||||
fi
|
||||
else
|
||||
if curl https://sh.rustup.rs -sSf | sh; then
|
||||
echo "${GREEN}Successfully installed Rust${NC}"
|
||||
|
@ -187,11 +188,13 @@ separator
|
|||
# Clone bash-git-prompt {{{
|
||||
|
||||
if [ -e ~/.bash-git-prompt ]; then
|
||||
echo "Found existing bash-git-prompt, updating..."
|
||||
cd ~/.bash-git-prompt && git pull
|
||||
cd "$base_dir" || exit 1
|
||||
echo "${GREEN}Found existing bash-git-prompt.${NC}"
|
||||
if [ "$UPDATE" = 'true' ]; then
|
||||
echo "Updating..."
|
||||
cd ~/.bash-git-prompt && git pull
|
||||
fi
|
||||
else
|
||||
echo "Cloning bash-git-prompt..."
|
||||
echo "${ORANGE}Cloning bash-git-prompt...${NC}"
|
||||
git clone https://github.com/magicmonty/bash-git-prompt.git ~/.bash-git-prompt --depth=1
|
||||
fi
|
||||
|
||||
|
@ -204,16 +207,17 @@ separator
|
|||
echo "Adding MIME type for .md files in Firefox..."
|
||||
echo "${ORANGE}Remember to install the Firefox extension for it to work${NC}"
|
||||
|
||||
if [ -e ~/.local/share/mime/packages/text-markdown.xml ]; then
|
||||
mkdir -p ~/.local/share/mime/packages
|
||||
echo "<?xml version=\"1.0\"?>
|
||||
<mime-info xmlns=\"http://www.freedesktop.org/standards/shared-mime-info\">
|
||||
<mime-info xmlns='http://www.freedesktop.org/standards/shared-mime-info'>
|
||||
<mime-type type=\"text/plain\">
|
||||
<glob pattern=\"*.md\"/>
|
||||
<glob pattern=\"*.mkd\"/>
|
||||
<glob pattern=\"*.markdown\"/>
|
||||
</mime-type>
|
||||
</mime-info>" > ~/.local/share/mime/packages/text-markdown.xml
|
||||
fi
|
||||
|
||||
update-mime-database ~/.local/share/mime
|
||||
|
||||
separator
|
||||
|
||||
|
@ -223,7 +227,7 @@ separator
|
|||
|
||||
echo "Cloning projects..."
|
||||
|
||||
/bin/bash clone_projects.sh
|
||||
/bin/bash "$BASE_DIR"/installation_scripts/clone_projects.sh
|
||||
|
||||
separator
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue