Files

50 lines
1.1 KiB
YAML

# tasks file for cs_student
- name: Install CS student tools
become: true
pacman:
name:
- neovim
- emacs
- python
- nodejs
- npm
- texlive-bin
- texlive-basic
- jupyter-nbconvert
- docker
- code
- github-cli
state: present
- name: Install LazyVim
shell: |
[ -d ~/.config/lazyvim ] && rm -rf ~/.config/lazyvim
git clone https://github.com/LazyVim/starter ~/.config/lazyvim
rm -rf ~/.config/lazyvim/.git
args:
creates: ~/.config/lazyvim
- name: Configure neovim to use LazyVim
shell: |
ln -sf ~/.config/lazyvim ~/.config/nvim
args:
creates: ~/.config/nvim
- name: Install Spacemacs
shell: |
[ -d ~/.emacs.d ] && rm -rf ~/.emacs.d
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d -b develop
args:
creates: ~/.emacs.d
- name: Setup shell aliases
blockinfile:
path: "{{ archsetup_user_home }}/.zshrc"
marker: "# {mark} ANSIBLE MANAGED - CS STUDENT"
block: |
# CS student aliases
alias find='fd'
alias top='btm'
alias tre='broot --sizes'
alias e='emacs -nw'