Updating install script and utilizing local mirros when possible
This commit is contained in:
14
install-fonts.sh
Normal file
14
install-fonts.sh
Normal 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/
|
||||||
16
install.sh
16
install.sh
@@ -1,6 +1,16 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
# Originally setup based on the post https://medium.com/@webprolific/getting-started-with-dotfiles-43c3602fd789
|
# 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/.bash_profile” ~
|
||||||
ln -sv “~/.dotfiles/runcom/.inputrc” ~
|
# ln -sv “~/.dotfiles/runcom/.inputrc” ~
|
||||||
ln -sv “~/.dotfiles/git/.gitconfig” ~
|
# 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
|
||||||
@@ -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/
|
|
||||||
10
vim-setup.sh
10
vim-setup.sh
@@ -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
|
cat >> ~/.bashrc<< EOF
|
||||||
sh ~/vim-solarized8/scripts/solarized8.sh
|
sh ~/.vim/pack/themes/opt/solarized8/scripts/solarized8.sh
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat > ~/.vimrc<< EOF
|
cat > ~/.vimrc<< EOF
|
||||||
|
|||||||
Reference in New Issue
Block a user