54 lines
1.2 KiB
YAML
54 lines
1.2 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
|
|
lineinfile:
|
|
path: "{{ lookup('env', 'HOME') }}/.zshrc"
|
|
line: "{{ item }}"
|
|
create: yes
|
|
loop:
|
|
- alias ls='eza --icons --group-directories-first'
|
|
- alias ll='eza -la --icons --group-directories-first'
|
|
- alias cat='bat --style=auto'
|
|
- alias find='fd'
|
|
- alias top='btm'
|
|
- alias tre='broot --sizes'
|
|
- alias e='emacs -nw'
|
|
- alias vim='nvim'
|