Updating install script and utilizing local mirros when possible

This commit is contained in:
2024-08-24 19:45:25 +02:00
parent 5a383efdd6
commit 2ad80f6eca
4 changed files with 35 additions and 11 deletions

14
install-fonts.sh Normal file
View File

@@ -0,0 +1,14 @@
# Install the GlassTTY: TrueType VT220 font from github
mkdir -p ~/.local/share/fonts/truetype/
cd ~/.local/share/fonts/truetype/
curl -O http://192.168.0.44:3000/matt/glasstty/src/branch/master/Glass_TTY_VT220.ttf
if [ $? -eq 0 ]; then
echo "Cloned Glass TTY font from local mirror"
else
curl -O https://github.com/svofski/glasstty/blob/master/Glass_TTY_VT220.ttf
echo "Cloned Glass TTY font from github"
fi
fc-cache -f -v ~/.local/share/fonts/truetype/

View File

@@ -1,6 +1,16 @@
#!/usr/bin/env bash
# Originally setup based on the post https://medium.com/@webprolific/getting-started-with-dotfiles-43c3602fd789
ln -sv “~/.dotfiles/runcom/.bash_profile” ~
ln -sv “~/.dotfiles/runcom/.inputrc” ~
ln -sv “~/.dotfiles/git/.gitconfig” ~
# ln -sv “~/.dotfiles/runcom/.bash_profile” ~
# ln -sv “~/.dotfiles/runcom/.inputrc” ~
# ln -sv “~/.dotfiles/git/.gitconfig” ~
# Install a retro looking font that I like to use in my terminal
./install-fonts.sh
# Setup Vimrc using paste to merge our saved vimrc with
# system default
paste ~/.vimrc ./vimrc > ~/vimrc.new
mv ~/.vimrc ~/.vimrc.bak
mv ~/vimrc.new ~/.vimrc
./vim-setup.sh

View File

@@ -1,6 +0,0 @@
# Install the GlassTTY: TrueType VT220 font from github
mkdir -p ~/.local/share/fonts/truetype/
cd ~/.local/share/fonts/truetype/
curl -O https://github.com/svofski/glasstty/blob/master/Glass_TTY_VT220.ttf
fc-cache -f -v ~/.local/share/fonts/truetype/

View File

@@ -1,7 +1,13 @@
git clone https://github.com/lifepillar/vim-solarized8.git ~/.vim/pack/themes/opt/solarized8
git clone ssh://git@192.168.0.44:2222/matt/vim-solarized8.git
if [ $? -eq 0 ]; then
echo "Cloned vim solarized theme from local mirror"
else
git clone https://github.com/lifepillar/vim-solarized8.git ~/.vim/pack/themes/opt/solarized8
echo "Cloned vim solarized theme from github"
fi
cat >> ~/.bashrc<< EOF
sh ~/vim-solarized8/scripts/solarized8.sh
sh ~/.vim/pack/themes/opt/solarized8/scripts/solarized8.sh
EOF
cat > ~/.vimrc<< EOF