Skip to content

Instantly share code, notes, and snippets.

@richardhealy
Last active July 19, 2022 15:16
Show Gist options
  • Save richardhealy/35dfa494be5c380d0ddeac31d81c8082 to your computer and use it in GitHub Desktop.
Save richardhealy/35dfa494be5c380d0ddeac31d81c8082 to your computer and use it in GitHub Desktop.
CodeEditor Setup
- hosts: localhost
become: true
tasks:
- name: Install zsh
apt: name=zsh
- name: Change shell
shell: chsh -s `which zsh`
- name: Install git
apt:
name: git
state: present
- name: Create nvim config path
file:
path: ".config/nvim/"
state: directory
- name: Install NeoVim
apt: name=neovim
- name: Install VimPlugin
shell: sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
- name: Install nvim config
shell: curl -o .config/nvim/init.vim https://gist.githubusercontent.com/richardhealy/7d8f949c886a14ed36eb4c1055581bec/raw/f23967617b1e700cf3f4fbac14c0f0ca2f7f2d64/init.vim
- name: Install ohmyzsh
shell: curl -L https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh | sh
- name: Configure zsh
shell: printf "plugins=(... docker docker-compose)" >> .zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment