Use git instead of shell

Signed-off-by: Matej Focko <matej.focko@outlook.com>
This commit is contained in:
Matej Focko 2020-10-11 18:40:02 +02:00
parent 55fee79589
commit 2e3be924d2
No known key found for this signature in database
GPG key ID: 707F7C6CBA7A2271
3 changed files with 13 additions and 4 deletions

View file

@ -1,5 +1,8 @@
---
- name: Install Doom Emacs
block:
- shell: git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
- git:
repo: https://github.com/hlissner/doom-emacs
dest: ~/.emacs.d
depth: 1
- shell: ~/.emacs.d/bin/doom install

View file

@ -1,6 +1,8 @@
---
- name: Clone tpm
shell: git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
git:
repo: https://github.com/tmux-plugins/tpm
dest: ~/.tmux/plugins/tpm
- name: Create tmux.conf
template:

View file

@ -3,10 +3,14 @@
shell: sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
- name: Clone zsh-autosuggestions
shell: git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git:
repo: https://github.com/zsh-users/zsh-autosuggestions
dest: ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
- name: Clone zsh-syntax-highlighting
shell: git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git:
repo: https://github.com/zsh-users/zsh-syntax-highlighting.git
dest: ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
- name: Clone starship
shell: curl -fsSL https://starship.rs/install.sh | bash