Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2026-03-22 22:51:32 +01:00
commit 222062c1a4
17 changed files with 1154 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
# 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'