Skip to content

Instantly share code, notes, and snippets.

@eloyesp
Last active November 11, 2020 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eloyesp/8cece042a3a489994f3961c531b3ec51 to your computer and use it in GitHub Desktop.
Save eloyesp/8cece042a3a489994f3961c531b3ec51 to your computer and use it in GitHub Desktop.
Small fixes for VPS
#!/bin/bash
# Basic setup to make life easier when using the shell on a VPS
# set -x
set -e
if [ ! -f ~/.vim/colors/solarized.vim ]
then
wget -P ~/.vim/colors https://raw.githubusercontent.com/altercation/solarized/master/vim-colors-solarized/colors/solarized.vim
fi
if [ ! -f ~/.vimrc ]
then
cat <<-VIMRC > ~/.vimrc
syntax enable
set background=dark
colorscheme solarized
VIMRC
fi
if [ ! -f ~/.inputrc ]
then
cat <<-INPUTRC > ~/.inputrc
\$include /etc/inputrc
# Fix del key when using st
set enable-keypad on
INPUTRC
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment