Compare commits
No commits in common. "813cf57d545a4a9e855ddcc01deba650f7f87759" and "383df69b7b34efdb4515a4f95d202592cb948257" have entirely different histories.
813cf57d54
...
383df69b7b
80 changed files with 71 additions and 888 deletions
|
@ -1,4 +0,0 @@
|
||||||
[defaults]
|
|
||||||
inventory = hosts
|
|
||||||
host_key_checking=False
|
|
||||||
roles = roles
|
|
|
@ -1,6 +0,0 @@
|
||||||
---
|
|
||||||
- hosts: all
|
|
||||||
roles:
|
|
||||||
- dotfiles
|
|
||||||
become: yes
|
|
||||||
become_user: root
|
|
1
hosts
1
hosts
|
@ -1 +0,0 @@
|
||||||
localhost ansible_connection=local
|
|
70
prepare.sh
Normal file
70
prepare.sh
Normal file
|
@ -0,0 +1,70 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# copying all the needed stuff in place.
|
||||||
|
DOTFILES=${HOME}/.dotfiles
|
||||||
|
|
||||||
|
# copying zshrc file
|
||||||
|
if [[ ! -f "$HOME/.zshrc" ]]; then
|
||||||
|
# no first setup done
|
||||||
|
|
||||||
|
# Determining operating system so we can quickly setup basic configuration
|
||||||
|
if grep -qi 'debian' /proc/version; then
|
||||||
|
# Debian
|
||||||
|
sudo apt install -y zsh-autosuggestions zsh-syntax-highlighting
|
||||||
|
ln -sf ${DOTFILES}/zsh/distro/debian.base.zsh ${DOTFILES}/zsh/distro.base.zsh
|
||||||
|
fi
|
||||||
|
if grep -qi 'ubuntu' /proc/version; then
|
||||||
|
# TODO: complete instructions for Ubuntu
|
||||||
|
ln -sf ${DOTFILES}/zsh/distro/ubuntu.base.zsh ${DOTFILES}/zsh/distro.base.zsh
|
||||||
|
fi
|
||||||
|
if grep -qi 'manjaro' /proc/version; then
|
||||||
|
# TODO: complete instructions for Manjaro
|
||||||
|
pamac install manjaro-zsh-config
|
||||||
|
ln -sf ${DOTFILES}/zsh/distro/manjaro.base.zsh ${DOTFILES}/zsh/distro.base.zsh
|
||||||
|
fi
|
||||||
|
if grep -qi 'archlinux' /proc/version; then
|
||||||
|
pacman -S zsh-autosuggestions zsh-syntax-highlighting
|
||||||
|
ln -sf ${DOTFILES}/zsh/distro/archlinux.base.zsh ${DOTFILES}/zsh/distro.base.zsh
|
||||||
|
fi
|
||||||
|
if grep -qi 'voidlinux' /proc/version; then
|
||||||
|
xbps-install -S zsh
|
||||||
|
ln -sf ${DOTFILES}/zsh/distro/void.base.zsh ${DOTFILES}/zsh/distro.base.zsh
|
||||||
|
fi
|
||||||
|
if [[ -f /etc/redhat-release ]] && grep -qi centos /etc/redhat-release; then
|
||||||
|
# TODO: installation on centos.
|
||||||
|
ln -sf ${DOTFILES}/zsh/distro/centos.base.zsh ${DOTFILES}/zsh/distro.base.zsh
|
||||||
|
fi
|
||||||
|
|
||||||
|
cp "${DOTFILES}/zshrc" "$HOME/.zshrc"
|
||||||
|
|
||||||
|
if [[ -f ${DOTFILES}/zsh/antibody_plugins.txt ]]; then
|
||||||
|
# Installing natively on archlinux, manjaro
|
||||||
|
if grep -i archlinux /proc/version || grep -i manjaro /proc/version; then
|
||||||
|
yay -S --no-confirm zsh-antidote
|
||||||
|
else
|
||||||
|
git clone --depth=1 https://github.com/mattmc3/antidote.git ${ZDOTDIR:-$HOME}/.antidote
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p ~/.zsh/conf.d
|
||||||
|
source /usr/share/zsh-antidote/antidote.zsh
|
||||||
|
antidote bundle < ${DOTFILES}/zsh/antibody_plugins.txt > ~/.zsh/conf.d/000_antidote.zsh
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Copying tmux configuration file and initialize plugins.
|
||||||
|
if [[ ! -f "$HOME/.tmux.conf" ]]; then
|
||||||
|
mkdir -p ${HOME}/.config/tmux/plugins
|
||||||
|
git clone https://github.com/tmux-plugins/tpm ${HOME}/.config/tmux/plugins/tpm
|
||||||
|
ln -sf "${DOTFILES}/tmux.conf" "$HOME/.config/tmux/tmux.conf"
|
||||||
|
echo "Please, open Tmux and run 'prefix I'."
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Vim - configure vundle and install plugins.
|
||||||
|
if [[ ! -f "${HOME}/.vimrc" ]]; then
|
||||||
|
ln -sf ${DOTFILES}/vimrc ${HOME}/.vimrc
|
||||||
|
ln -sf ${DOTFILES}/vim ${HOME}/.vim
|
||||||
|
# Installing vim-plug
|
||||||
|
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
|
||||||
|
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
|
||||||
|
# Installing vim-plug and relative plugins
|
||||||
|
vim +PlugInstall +qall
|
||||||
|
fi
|
|
@ -1,2 +0,0 @@
|
||||||
---
|
|
||||||
dotfdir: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.dotfiles"
|
|
|
@ -1,17 +0,0 @@
|
||||||
---
|
|
||||||
# Configuring zsh bundles
|
|
||||||
|
|
||||||
- name: Assuring the conf.d folder exists
|
|
||||||
ansible.builtin.file:
|
|
||||||
dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.zsh/conf.d"
|
|
||||||
state: directory
|
|
||||||
owner: syntaxerrormmm
|
|
||||||
group: syntaxerrormmm
|
|
||||||
mode: '0755'
|
|
||||||
|
|
||||||
- name: Building lazy-loading list
|
|
||||||
ansible.builtin.shell: >-
|
|
||||||
source ~/.zsh/antidote/antidote.zsh;
|
|
||||||
antidote bundle < {{ dotfdir }}/zsh/antibody_plugins.txt > ~/.zsh/conf.d/000_antidote.zsh
|
|
||||||
args:
|
|
||||||
executable: /usr/bin/zsh
|
|
|
@ -1,16 +0,0 @@
|
||||||
---
|
|
||||||
# Installing antidote.
|
|
||||||
|
|
||||||
- name: Creating destination folder
|
|
||||||
ansible.builtin.file:
|
|
||||||
dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.zsh/antidote"
|
|
||||||
state: directory
|
|
||||||
owner: syntaxerrormmm
|
|
||||||
group: syntaxerrormmm
|
|
||||||
mode: "0755"
|
|
||||||
|
|
||||||
- name: Installing antidote with git
|
|
||||||
ansible.builtin.git:
|
|
||||||
repo: "https://github.com/mattmc3/antidote.git"
|
|
||||||
dest: "{{ lookup('ansible.builtin.env','HOME' ) }}/.zsh/antidote"
|
|
||||||
depth: 1
|
|
|
@ -1,14 +0,0 @@
|
||||||
---
|
|
||||||
# Deploying antidote
|
|
||||||
|
|
||||||
- name: Installing antidote
|
|
||||||
ansible.builtin.import_tasks: installation.yml
|
|
||||||
tags:
|
|
||||||
- antidote
|
|
||||||
- antidote-install
|
|
||||||
|
|
||||||
- name: Configuring antidote
|
|
||||||
ansible.builtin.import_tasks: configuration.yml
|
|
||||||
tags:
|
|
||||||
- antidote
|
|
||||||
- antidote-config
|
|
|
@ -1,12 +0,0 @@
|
||||||
---
|
|
||||||
dependencies:
|
|
||||||
- git
|
|
||||||
- fzf
|
|
||||||
- pip
|
|
||||||
- rsync
|
|
||||||
- rclone
|
|
||||||
- zsh
|
|
||||||
- antidote
|
|
||||||
- tmux
|
|
||||||
- vim
|
|
||||||
- vim-plug
|
|
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
# FZF on alpine
|
|
||||||
|
|
||||||
- name: (alp) FZF installation
|
|
||||||
community.general.apk:
|
|
||||||
name: fzf
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
# FZF on Arch
|
|
||||||
|
|
||||||
- name: (arch) FZF install
|
|
||||||
community.general.pacman:
|
|
||||||
name: fzf
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
# FZF on Debian
|
|
||||||
|
|
||||||
- name: (deb) FZF install
|
|
||||||
ansible.builtin.apt:
|
|
||||||
name: fzf
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,21 +0,0 @@
|
||||||
---
|
|
||||||
# FZF on RedHat
|
|
||||||
# reverting to installation from git repo
|
|
||||||
|
|
||||||
- name: (rHa) FZF - Build directory
|
|
||||||
ansible.builtin.file:
|
|
||||||
dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.fzf"
|
|
||||||
state: directory
|
|
||||||
owner: syntaxerrormmm
|
|
||||||
group: syntaxerrormmm
|
|
||||||
mode: '0755'
|
|
||||||
|
|
||||||
- name: (rHa) FZF - clone from git
|
|
||||||
ansible.builtin.git:
|
|
||||||
repo: https://github.com/junegunn/fzf.git
|
|
||||||
depth: 1
|
|
||||||
dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.fzf"
|
|
||||||
|
|
||||||
- name: (rHa) FZF - Installing
|
|
||||||
ansible.builtin.command: >-
|
|
||||||
{{ lookup('ansible.builtin.env', 'HOME' ) }}/.fzf/install
|
|
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
# FZF - install on Void
|
|
||||||
|
|
||||||
- name: (void) FZF - install
|
|
||||||
community.general.xbps:
|
|
||||||
name: fzf
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,13 +0,0 @@
|
||||||
---
|
|
||||||
# Installation of fzf
|
|
||||||
|
|
||||||
- name: Installation
|
|
||||||
ansible.builtin.include_tasks: "install/{{ ansible_os_family | lower }}.yml"
|
|
||||||
args:
|
|
||||||
apply:
|
|
||||||
tags:
|
|
||||||
- fzf
|
|
||||||
- fzf-install
|
|
||||||
tags:
|
|
||||||
- fzf
|
|
||||||
- fzf-install
|
|
|
@ -1,14 +0,0 @@
|
||||||
---
|
|
||||||
# Configuring git
|
|
||||||
|
|
||||||
- name: Configuring git username
|
|
||||||
ansible.builtin.git_config:
|
|
||||||
name: user.name
|
|
||||||
scope: global
|
|
||||||
value: "Emiliano Vavassori"
|
|
||||||
|
|
||||||
- name: Configuring git email
|
|
||||||
ansible.builtin.git_config:
|
|
||||||
name: user.email
|
|
||||||
scope: global
|
|
||||||
value: syntaxerrormmm@gmail.com
|
|
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
# git on alpine
|
|
||||||
|
|
||||||
- name: (alp) installing git
|
|
||||||
community.general.apk:
|
|
||||||
name: git
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
# git on Archlinux
|
|
||||||
|
|
||||||
- name: (arch) installing git
|
|
||||||
community.general.pacman:
|
|
||||||
name: git
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
# git on Debian
|
|
||||||
|
|
||||||
- name: (deb) installing git
|
|
||||||
ansible.builtin.apt:
|
|
||||||
name: git
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
# git on RedHat
|
|
||||||
|
|
||||||
- name: (rHa) installing git
|
|
||||||
ansible.builtin.yum:
|
|
||||||
name: git
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
# git on void
|
|
||||||
|
|
||||||
- name: (void) installing git
|
|
||||||
community.general.xbps:
|
|
||||||
name: git
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,19 +0,0 @@
|
||||||
---
|
|
||||||
# Installing and configuring git
|
|
||||||
|
|
||||||
- name: Installation
|
|
||||||
ansible.builtin.include_tasks: "install/{{ ansible_os_family | lower }}.yml"
|
|
||||||
args:
|
|
||||||
apply:
|
|
||||||
tags:
|
|
||||||
- git
|
|
||||||
- git-install
|
|
||||||
tags:
|
|
||||||
- git
|
|
||||||
- git-install
|
|
||||||
|
|
||||||
- name: Configuring git
|
|
||||||
ansible.builtin.import_tasks: configuration.yml
|
|
||||||
tags:
|
|
||||||
- git
|
|
||||||
- git-config
|
|
|
@ -1,11 +0,0 @@
|
||||||
---
|
|
||||||
# pip on alpine
|
|
||||||
|
|
||||||
- name: (alp) installing pip
|
|
||||||
community.general.apk:
|
|
||||||
name:
|
|
||||||
- py3-pip
|
|
||||||
- py3-virtualenv
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,11 +0,0 @@
|
||||||
---
|
|
||||||
# pip on Archlinux
|
|
||||||
|
|
||||||
- name: (arch) installing pip
|
|
||||||
community.general.pacman:
|
|
||||||
name:
|
|
||||||
- python-pip
|
|
||||||
- python-virtualenv
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,11 +0,0 @@
|
||||||
---
|
|
||||||
# Pip on debian
|
|
||||||
|
|
||||||
- name: (deb) installing pip
|
|
||||||
ansible.builtin.apt:
|
|
||||||
name:
|
|
||||||
- python3-pip
|
|
||||||
- python3-virtualenv
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,11 +0,0 @@
|
||||||
---
|
|
||||||
# pip on redhat
|
|
||||||
|
|
||||||
- name: (rHa) installing pip
|
|
||||||
ansible.builtin.yum:
|
|
||||||
name:
|
|
||||||
- python3-pip
|
|
||||||
- python-virtualenv
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,11 +0,0 @@
|
||||||
---
|
|
||||||
# pip on void
|
|
||||||
|
|
||||||
- name: (void) installing pip
|
|
||||||
community.general.xbps:
|
|
||||||
name:
|
|
||||||
- python-pip
|
|
||||||
- python3-virtualenv
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,13 +0,0 @@
|
||||||
---
|
|
||||||
# Verifying pip is installed.
|
|
||||||
|
|
||||||
- name: Installing pip
|
|
||||||
ansible.builtin.include_tasks: "install/{{ ansible_os_family | lower }}.yml"
|
|
||||||
args:
|
|
||||||
apply:
|
|
||||||
tags:
|
|
||||||
- pip
|
|
||||||
- pip-install
|
|
||||||
tags:
|
|
||||||
- pip
|
|
||||||
- pip-install
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: (alp) installing rclone
|
|
||||||
community.general.apk:
|
|
||||||
name: rclone
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: (arch) installing rclone
|
|
||||||
community.general.pacman:
|
|
||||||
name: rclone
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: (deb) installing rclone
|
|
||||||
ansible.builtin.apt:
|
|
||||||
name: rclone
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: (rHa) installing rclone
|
|
||||||
ansible.builtin.yum:
|
|
||||||
name: rclone
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: (void) installing rclone
|
|
||||||
community.general.xbps:
|
|
||||||
name: rclone
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,13 +0,0 @@
|
||||||
---
|
|
||||||
# Rclone
|
|
||||||
|
|
||||||
- name: Installation
|
|
||||||
ansible.builtin.include_tasks: "install/{{ ansible_os_family | lower }}.yml"
|
|
||||||
args:
|
|
||||||
apply:
|
|
||||||
tags:
|
|
||||||
- rclone
|
|
||||||
- rclone-install
|
|
||||||
tags:
|
|
||||||
- rclone
|
|
||||||
- rclone-install
|
|
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
# rsync
|
|
||||||
|
|
||||||
- name: (alp) installing rsync
|
|
||||||
community.general.apk:
|
|
||||||
name: rsync
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: (arch) installing rsync
|
|
||||||
community.general.pacman:
|
|
||||||
name: rsync
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: (deb) installing rsync
|
|
||||||
ansible.builtin.apt:
|
|
||||||
name: rsync
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: (rHa) installing rsync
|
|
||||||
ansible.builtin.yum:
|
|
||||||
name: rsync
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: (void) installing rsync
|
|
||||||
community.general.xbps:
|
|
||||||
name: rsync
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,13 +0,0 @@
|
||||||
---
|
|
||||||
# Rsync
|
|
||||||
|
|
||||||
- name: Installation
|
|
||||||
ansible.builtin.include_tasks: "install/{{ ansible_os_family | lower }}.yml"
|
|
||||||
args:
|
|
||||||
apply:
|
|
||||||
tags:
|
|
||||||
- rsync
|
|
||||||
- rsync-install
|
|
||||||
tags:
|
|
||||||
- rsync
|
|
||||||
- rsync-install
|
|
|
@ -1,2 +0,0 @@
|
||||||
---
|
|
||||||
dotfdir: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.dotfiles"
|
|
|
@ -1,32 +0,0 @@
|
||||||
---
|
|
||||||
# Tmux standard configuration
|
|
||||||
|
|
||||||
- name: Creating configuration folders
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.config/tmux/plugins"
|
|
||||||
state: directory
|
|
||||||
owner: syntaxerrormmm
|
|
||||||
group: syntaxerrormmm
|
|
||||||
mode: '0755'
|
|
||||||
|
|
||||||
- name: Getting tpm
|
|
||||||
ansible.builtin.git:
|
|
||||||
repo: https://github.com/tmux-plugins/tpm.git
|
|
||||||
depth: 1
|
|
||||||
dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.config/tmux/plugins/tpm"
|
|
||||||
|
|
||||||
- name: Linking default configuration file
|
|
||||||
ansible.builtin.file:
|
|
||||||
src: "{{ dotfdir }}/tmux.conf"
|
|
||||||
dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.config/tmux/tmux.conf"
|
|
||||||
state: link
|
|
||||||
owner: syntaxerrormmm
|
|
||||||
group: syntaxerrormmm
|
|
||||||
|
|
||||||
- name: Fallback default old standard
|
|
||||||
ansible.builtin.file:
|
|
||||||
src: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.config/tmux/tmux.conf"
|
|
||||||
dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.tmux.conf"
|
|
||||||
state: link
|
|
||||||
owner: syntaxerrormmm
|
|
||||||
group: syntaxerrormmm
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: (alp) installing tmux
|
|
||||||
community.general.apk:
|
|
||||||
name: tmux
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: (arch) installing tmux
|
|
||||||
community.general.pacman:
|
|
||||||
name: tmux
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: (deb) installing tmux
|
|
||||||
ansible.builtin.apt:
|
|
||||||
name: tmux
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: (rHa) installing tmux
|
|
||||||
ansible.builtin.yum:
|
|
||||||
name: tmux
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: (void) installing tmux
|
|
||||||
community.general.xbps:
|
|
||||||
name: tmux
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,23 +0,0 @@
|
||||||
---
|
|
||||||
# Managing tmux
|
|
||||||
|
|
||||||
- name: Installation
|
|
||||||
ansible.builtin.include_tasks: "install/{{ ansible_os_family | lower }}.yml"
|
|
||||||
args:
|
|
||||||
apply:
|
|
||||||
tags:
|
|
||||||
- tmux
|
|
||||||
- tmux-install
|
|
||||||
tags:
|
|
||||||
- tmux
|
|
||||||
- tmux-install
|
|
||||||
|
|
||||||
- name: Configuration
|
|
||||||
ansible.builtin.import_tasks: configuration.yml
|
|
||||||
tags:
|
|
||||||
- tmux
|
|
||||||
- tmux-config
|
|
||||||
|
|
||||||
- name: Manual steps
|
|
||||||
ansible.builtin.debug:
|
|
||||||
msg: "Please run prefix + I in tmux to install the needed plugins."
|
|
|
@ -1,5 +0,0 @@
|
||||||
---
|
|
||||||
- name: repolist
|
|
||||||
ansible.builtin.command: yum repolist
|
|
||||||
become: true
|
|
||||||
become_user: root
|
|
|
@ -1,10 +0,0 @@
|
||||||
---
|
|
||||||
- name: (alp) installing plugin dependencies
|
|
||||||
community.general.apk:
|
|
||||||
name:
|
|
||||||
- nodejs
|
|
||||||
- npm
|
|
||||||
- yarn
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,10 +0,0 @@
|
||||||
---
|
|
||||||
- name: (arch) installing plugin dependencies
|
|
||||||
community.general.pacman:
|
|
||||||
name:
|
|
||||||
- nodejs
|
|
||||||
- npm
|
|
||||||
- yarn
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,10 +0,0 @@
|
||||||
---
|
|
||||||
- name: (deb) installing plugin dependencies
|
|
||||||
ansible.builtin.apt:
|
|
||||||
name:
|
|
||||||
- nodejs
|
|
||||||
- npm
|
|
||||||
- yarnpkg
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,34 +0,0 @@
|
||||||
---
|
|
||||||
- name: (rHa) installing plugin dependencies
|
|
||||||
ansible.builtin.yum:
|
|
||||||
name:
|
|
||||||
- nodejs
|
|
||||||
- npm
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
||||||
|
|
||||||
# Yarn is available in other repository.
|
|
||||||
- name: (rHa) installing yarn repo
|
|
||||||
ansible.builtin.get_url:
|
|
||||||
url: "https://dl.yarnpkg.com/rpm/yarn.repo"
|
|
||||||
dest: /etc/yum.repos.d/yarn.repo
|
|
||||||
become: true
|
|
||||||
notify: repolist
|
|
||||||
|
|
||||||
- name: (rHa) installing yarn gpg key
|
|
||||||
ansible.builtin.rpm_key:
|
|
||||||
key: "http://dl.yarnpkg.com/rpm/pubkey.gpg"
|
|
||||||
state: present
|
|
||||||
become: true
|
|
||||||
notify: repolist
|
|
||||||
|
|
||||||
- name: Flushing handlers
|
|
||||||
ansible.builtin.meta: flush_handlers
|
|
||||||
|
|
||||||
- name: (rHa) installing yarn
|
|
||||||
ansible.builtin.yum:
|
|
||||||
name: yarn
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
- name: (void) installing plugin dependencies
|
|
||||||
community.general.xbps:
|
|
||||||
name:
|
|
||||||
- nodejs
|
|
||||||
- yarn-bin
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,20 +0,0 @@
|
||||||
---
|
|
||||||
# Installation tasks
|
|
||||||
|
|
||||||
- name: Installing plugin dependencies
|
|
||||||
ansible.builtin.include_tasks: "depend/{{ ansible_os_family | lower }}.yml"
|
|
||||||
|
|
||||||
- name: Creating autoload dir
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.vim/autoload"
|
|
||||||
state: directory
|
|
||||||
owner: syntaxerrormmm
|
|
||||||
group: syntaxerrormmm
|
|
||||||
|
|
||||||
- name: Installing vim-plug from git
|
|
||||||
ansible.builtin.get_url:
|
|
||||||
url: "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim"
|
|
||||||
dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.vim/autoload/plug.vim"
|
|
||||||
owner: syntaxerrormmm
|
|
||||||
group: syntaxerrormmm
|
|
||||||
mode: '0644'
|
|
|
@ -1,12 +0,0 @@
|
||||||
---
|
|
||||||
# Configuring vim-plug
|
|
||||||
|
|
||||||
- name: Installation
|
|
||||||
ansible.builtin.import_tasks: installation.yml
|
|
||||||
tags:
|
|
||||||
- vim-plug
|
|
||||||
- vim-plug-install
|
|
||||||
|
|
||||||
- name: Configuration
|
|
||||||
ansible.builtin.shell: >-
|
|
||||||
vim +PlugInstall +qall
|
|
|
@ -1,2 +0,0 @@
|
||||||
---
|
|
||||||
dotfdir: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.dotfiles"
|
|
|
@ -1,18 +0,0 @@
|
||||||
---
|
|
||||||
# Configuring vim
|
|
||||||
|
|
||||||
- name: Linking main file
|
|
||||||
ansible.builtin.file:
|
|
||||||
src: "{{ dotfdir }}/vimrc"
|
|
||||||
dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.vimrc"
|
|
||||||
state: link
|
|
||||||
owner: syntaxerrormmm
|
|
||||||
group: syntaxerrormmm
|
|
||||||
|
|
||||||
- name: Linking main folder
|
|
||||||
ansible.builtin.file:
|
|
||||||
src: "{{ dotfdir }}/vim"
|
|
||||||
dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.vim"
|
|
||||||
state: link
|
|
||||||
owner: syntaxerrormmm
|
|
||||||
group: syntaxerrormmm
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: (alp) installing vim
|
|
||||||
community.general.apk:
|
|
||||||
name: vim
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: (arch) installing vim
|
|
||||||
community.general.pacman:
|
|
||||||
name: vim
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: (deb) installing vim
|
|
||||||
ansible.builtin.apt:
|
|
||||||
name: vim
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: (rHa) installing vim
|
|
||||||
ansible.builtin.yum:
|
|
||||||
name: vim
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,7 +0,0 @@
|
||||||
---
|
|
||||||
- name: (void) installing Vim
|
|
||||||
community.general.xbps:
|
|
||||||
name: vim
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,19 +0,0 @@
|
||||||
---
|
|
||||||
# Vim
|
|
||||||
|
|
||||||
- name: Installation
|
|
||||||
ansible.builtin.include_tasks: "install/{{ ansible_os_family | lower }}.yml"
|
|
||||||
args:
|
|
||||||
apply:
|
|
||||||
tags:
|
|
||||||
- vim
|
|
||||||
- vim-install
|
|
||||||
tags:
|
|
||||||
- vim
|
|
||||||
- vim-install
|
|
||||||
|
|
||||||
- name: Configuration
|
|
||||||
ansible.builtin.import_tasks: configuration.yml
|
|
||||||
tags:
|
|
||||||
- vim
|
|
||||||
- vim-config
|
|
|
@ -1,2 +0,0 @@
|
||||||
---
|
|
||||||
dotfdir: "{{ lookup('ansible.builtin.env', 'HOME' }}/.dotfiles"
|
|
|
@ -1,10 +0,0 @@
|
||||||
---
|
|
||||||
# Configuration for base settings - Alpine
|
|
||||||
|
|
||||||
- name: (alp) - ZSH base configuration
|
|
||||||
ansible.builtin.file:
|
|
||||||
src: "{{ dotfdir }}/zsh/distro/alpine.base.zsh"
|
|
||||||
dest: "{{ dotfdir }}/zsh/distro.base.zsh"
|
|
||||||
state: link
|
|
||||||
owner: syntaxerrormmm
|
|
||||||
group: syntaxerrormmm
|
|
|
@ -1,20 +0,0 @@
|
||||||
---
|
|
||||||
# Configuration for base settings - Archlinux
|
|
||||||
|
|
||||||
- name: (arch) - ZSH base configuration
|
|
||||||
ansible.builtin.file:
|
|
||||||
src: "{{ dotfdir }}/zsh/distro/archlinux.base.zsh"
|
|
||||||
dest: "{{ dotfdir }}/zsh/distro.base.zsh"
|
|
||||||
state: link
|
|
||||||
owner: syntaxerrormmm
|
|
||||||
group: syntaxerrormmm
|
|
||||||
when: ansible_lsb == [] or ansible_lsb.description == 'Arch Linux'
|
|
||||||
|
|
||||||
- name: (manj) - ZSH base configuration
|
|
||||||
ansible.builtin.file:
|
|
||||||
src: "{{ dotfdir }}/zsh/distro/manjaro.base.zsh"
|
|
||||||
dest: "{{ dotfdir }}/zsh/distro.base.zsh"
|
|
||||||
state: link
|
|
||||||
owner: syntaxerrormmm
|
|
||||||
group: syntaxerrormmm
|
|
||||||
when: ansible_lsb != [] and ansible_lsb.description == 'Manjaro Linux'
|
|
|
@ -1,20 +0,0 @@
|
||||||
---
|
|
||||||
# Configuration for base settings - Debian
|
|
||||||
|
|
||||||
- name: (deb) - ZSH base configuration
|
|
||||||
ansible.builtin.file:
|
|
||||||
src: "{{ dotfdir }}/zsh/distro/debian.base.zsh"
|
|
||||||
dest: "{{ dotfdir }}/zsh/distro.base.zsh"
|
|
||||||
state: link
|
|
||||||
owner: syntaxerrormmm
|
|
||||||
group: syntaxerrormmm
|
|
||||||
when: ansible_distribution == 'Debian'
|
|
||||||
|
|
||||||
- name: (ubu) - ZSH base configuration
|
|
||||||
ansible.builtin.file:
|
|
||||||
src: "{{ dotfdir }}/zsh/distro/ubuntu.base.zsh"
|
|
||||||
dest: "{{ dotfdir }}/zsh/distro.base.zsh"
|
|
||||||
state: link
|
|
||||||
owner: syntaxerrormmm
|
|
||||||
group: syntaxerrormmm
|
|
||||||
when: ansible_distribution == 'Ubuntu'
|
|
|
@ -1,26 +0,0 @@
|
||||||
---
|
|
||||||
# Configuring zsh
|
|
||||||
|
|
||||||
- name: Fixing base settings
|
|
||||||
ansible.builtin.include_tasks: "{{ ansible_os_family | lower }}.yml"
|
|
||||||
|
|
||||||
- name: Set zsh as default shell for syntaxerrormmm
|
|
||||||
ansible.builtin.user:
|
|
||||||
name: syntaxerrormmm
|
|
||||||
shell: /usr/bin/zsh
|
|
||||||
|
|
||||||
- name: Creating personal folder for customization
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.zsh/conf.d"
|
|
||||||
state: directory
|
|
||||||
owner: syntaxerrormmm
|
|
||||||
group: syntaxerrormmm
|
|
||||||
mode: "0755"
|
|
||||||
|
|
||||||
- name: Linking main file
|
|
||||||
ansible.builtin.file:
|
|
||||||
src: "{{ dotfdir }}/zshrc"
|
|
||||||
dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.zshrc"
|
|
||||||
state: link
|
|
||||||
owner: syntaxerrormmm
|
|
||||||
group: syntaxerrormmm
|
|
|
@ -1,10 +0,0 @@
|
||||||
---
|
|
||||||
# Configuration for base settings - RedHat
|
|
||||||
|
|
||||||
- name: (rha) - ZSH base configuration
|
|
||||||
ansible.builtin.file:
|
|
||||||
src: "{{ dotfdir }}/zsh/distro/centos.base.zsh"
|
|
||||||
dest: "{{ dotfdir }}/zsh/distro.base.zsh"
|
|
||||||
state: link
|
|
||||||
owner: syntaxerrormmm
|
|
||||||
group: syntaxerrormmm
|
|
|
@ -1,10 +0,0 @@
|
||||||
---
|
|
||||||
# Configuration for base settings - Void
|
|
||||||
|
|
||||||
- name: (void) - ZSH base configuration
|
|
||||||
ansible.builtin.file:
|
|
||||||
src: "{{ dotfdir }}/zsh/distro/void.base.zsh"
|
|
||||||
dest: "{{ dotfdir }}/zsh/distro.base.zsh"
|
|
||||||
state: link
|
|
||||||
owner: syntaxerrormmm
|
|
||||||
group: syntaxerrormmm
|
|
|
@ -1,31 +0,0 @@
|
||||||
---
|
|
||||||
# Configuring zsh
|
|
||||||
|
|
||||||
- name: Set zsh as default shell for syntaxerrormmm
|
|
||||||
ansible.builtin.user:
|
|
||||||
name: syntaxerrormmm
|
|
||||||
shell: /usr/bin/zsh
|
|
||||||
tags:
|
|
||||||
- zsh
|
|
||||||
- omz
|
|
||||||
- zsh-config
|
|
||||||
- zsh-config-omz
|
|
||||||
|
|
||||||
- name: Creating personal folder for customization
|
|
||||||
ansible.builtin.file:
|
|
||||||
path: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.zsh/conf.d"
|
|
||||||
state: directory
|
|
||||||
owner: syntaxerrormmm
|
|
||||||
group: syntaxerrormmm
|
|
||||||
mode: "0755"
|
|
||||||
|
|
||||||
- name: Linking main file
|
|
||||||
ansible.builtin.file:
|
|
||||||
src: "{{ dotfdir }}/zshrc"
|
|
||||||
dest: "{{ lookup('ansible.builtin.env', 'HOME' ) }}/.zshrc"
|
|
||||||
state: link
|
|
||||||
owner: syntaxerrormmm
|
|
||||||
group: syntaxerrormmm
|
|
||||||
|
|
||||||
- name: Fixing base settings
|
|
||||||
ansible.builtin.include_tasks: "{{ ansible_os_family | lower }}.yml"
|
|
|
@ -1,14 +0,0 @@
|
||||||
---
|
|
||||||
- name: (Alpine) Installing packages around zsh
|
|
||||||
community.general.apk:
|
|
||||||
name:
|
|
||||||
- zsh
|
|
||||||
- zsh-completions
|
|
||||||
- zsh-autosuggestions
|
|
||||||
- zsh-syntax-highlighting
|
|
||||||
- zsh-history-substring-search
|
|
||||||
- zsh-theme-powerlevel10k
|
|
||||||
- zsh-vcs
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,13 +0,0 @@
|
||||||
---
|
|
||||||
- name: (Arch) Installing packages around zsh
|
|
||||||
community.general.pacman:
|
|
||||||
name:
|
|
||||||
- zsh
|
|
||||||
- zsh-completions
|
|
||||||
- zsh-autosuggestions
|
|
||||||
- zsh-syntax-highlighting
|
|
||||||
- zsh-history-substring-search
|
|
||||||
- zsh-theme-powerlevel10k
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,25 +0,0 @@
|
||||||
---
|
|
||||||
# Installing zsh and its dependency
|
|
||||||
|
|
||||||
- name: (Deb) Installing packages around zsh
|
|
||||||
ansible.builtin.apt:
|
|
||||||
name:
|
|
||||||
- zsh
|
|
||||||
- zsh-autosuggestions
|
|
||||||
- zsh-syntax-highlighting
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
when: ansible_distribution == 'Debian'
|
|
||||||
become: true
|
|
||||||
|
|
||||||
- name: (ubu) Installing packages around zsh
|
|
||||||
ansible.builtin.apt:
|
|
||||||
name:
|
|
||||||
- zsh
|
|
||||||
- zsh-autosuggestions
|
|
||||||
- zsh-syntax-highlighting
|
|
||||||
- zsh-theme-powerlevel9k
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
when: ansible_distribution == 'Ubuntu'
|
|
||||||
become: true
|
|
|
@ -1,9 +0,0 @@
|
||||||
---
|
|
||||||
- name: (RH) Installing packages around zsh
|
|
||||||
ansible.builtin.yum:
|
|
||||||
name:
|
|
||||||
- zsh
|
|
||||||
- zsh-syntax-highlighting
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,14 +0,0 @@
|
||||||
---
|
|
||||||
# Installing zsh and its dependency
|
|
||||||
|
|
||||||
- name: (Void) Installing packages around zsh
|
|
||||||
community.general.xbps:
|
|
||||||
name:
|
|
||||||
- zsh
|
|
||||||
- zsh-completions
|
|
||||||
- zsh-autosuggestions
|
|
||||||
- zsh-syntax-highlighting
|
|
||||||
- zsh-history-substring-search
|
|
||||||
state: present
|
|
||||||
update_cache: true
|
|
||||||
become: true
|
|
|
@ -1,19 +0,0 @@
|
||||||
---
|
|
||||||
# Setting up zsh
|
|
||||||
|
|
||||||
- name: Installation
|
|
||||||
ansible.builtin.include_tasks: "install/{{ ansible_os_family | lower }}.yml"
|
|
||||||
args:
|
|
||||||
apply:
|
|
||||||
tags:
|
|
||||||
- zsh
|
|
||||||
- zsh-install
|
|
||||||
tags:
|
|
||||||
- zsh
|
|
||||||
- zsh-install
|
|
||||||
|
|
||||||
- name: Configuration
|
|
||||||
ansible.builtin.import_tasks: config/main.yml
|
|
||||||
tags:
|
|
||||||
- zsh
|
|
||||||
- zsh-config
|
|
|
@ -1,5 +1,6 @@
|
||||||
ohmyzsh/ohmyzsh path:plugins/command-not-found
|
ohmyzsh/ohmyzsh path:plugins/command-not-found
|
||||||
ohmyzsh/ohmyzsh path:plugins/common-aliases
|
ohmyzsh/ohmyzsh path:plugins/common-aliases
|
||||||
|
ohmyzsh/ohmyzsh path:plugins/copyfile
|
||||||
ohmyzsh/ohmyzsh path:plugins/fzf
|
ohmyzsh/ohmyzsh path:plugins/fzf
|
||||||
ohmyzsh/ohmyzsh path:plugins/git
|
ohmyzsh/ohmyzsh path:plugins/git
|
||||||
ohmyzsh/ohmyzsh path:plugins/pip
|
ohmyzsh/ohmyzsh path:plugins/pip
|
||||||
|
|
3
zshrc
3
zshrc
|
@ -22,9 +22,6 @@ fi
|
||||||
if [[ -f /usr/share/zsh-antidote/antidote.zsh ]]; then
|
if [[ -f /usr/share/zsh-antidote/antidote.zsh ]]; then
|
||||||
source /usr/share/zsh-antidote/antidote.zsh
|
source /usr/share/zsh-antidote/antidote.zsh
|
||||||
fi
|
fi
|
||||||
if [[ -f ${HOME}/.zsh/antidote/antidote.zsh ]]; then
|
|
||||||
source ${HOME}/.zsh/antidote/antidote.zsh
|
|
||||||
fi
|
|
||||||
|
|
||||||
# configuring fzf plugin for tmux
|
# configuring fzf plugin for tmux
|
||||||
export ZSH_TMUX_CONFIG=${HOME}/.config/tmux/tmux.conf
|
export ZSH_TMUX_CONFIG=${HOME}/.config/tmux/tmux.conf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue