diff --git a/README.md b/README.md index acf62e2..a328e1c 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,11 @@ # Gaiety's (Jo Wroten's) Dotfiles -WIP +Designed for Linux (Ubuntu). + +## Setup + +1. Install Git `apt-get install git` +2. Clone this repo `git clone git@gitlab.com:gaiety/dotfiles.git ~/dotfiles` +3. `cd ~/dotfiles` +4. `sudo $0 install.sh` diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..1033556 --- /dev/null +++ b/install.sh @@ -0,0 +1,3 @@ +#!/bin/bash +sudo bash git/install.sh +sudo bash nvim/install.sh diff --git a/nvim/.README.md.swp b/nvim/.README.md.swp new file mode 100644 index 0000000..ff28ae0 Binary files /dev/null and b/nvim/.README.md.swp differ diff --git a/nvim/README.md b/nvim/README.md new file mode 100644 index 0000000..1d657fb --- /dev/null +++ b/nvim/README.md @@ -0,0 +1,16 @@ +# Gaiety's (Jo Wroten's) Dotfiles + +## Neovim + +Vim alternative `nvim`. + +## Setup + +```bash +apt-get install software-properties-common +apt-get install python-software-properties +add-apt-repository ppa:neovim-ppa/stable +apt-get update +apt-get install neovim +``` + diff --git a/nvim/install.sh b/nvim/install.sh new file mode 100644 index 0000000..9955175 --- /dev/null +++ b/nvim/install.sh @@ -0,0 +1,15 @@ +echo " - Installing Neovim - " +sudo apt-get install software-properties-common +sudo apt-get install python-software-properties +sudo add-apt-repository ppa:neovim-ppa/stable +sudo apt-get update +sudo apt-get install neovim +sudo apt-get install python-dev python-pip python3-dev python3-pip + +echo " - Setting Neovim as Default Editor - " +sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60 +sudo update-alternatives --config vi +sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 60 +sudo update-alternatives --config vim +sudo update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 60 +sudo update-alternatives --config editor