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