zsh
This commit is contained in:
@@ -11,3 +11,42 @@
|
|||||||
key: "{{ item.key }}"
|
key: "{{ item.key }}"
|
||||||
value: "{{ item.value }}"
|
value: "{{ item.value }}"
|
||||||
with_items: "{{ dconf }}"
|
with_items: "{{ dconf }}"
|
||||||
|
|
||||||
|
- name: Check that Oh My ZSH is installed
|
||||||
|
stat:
|
||||||
|
path: "~/.oh-my-zsh"
|
||||||
|
register: ohmyzsh_result
|
||||||
|
|
||||||
|
- name: Install Oh My ZSH
|
||||||
|
shell: sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
|
||||||
|
args:
|
||||||
|
creates: "~/.oh-my-zsh"
|
||||||
|
when: not ohmyzsh_result.stat.exists
|
||||||
|
|
||||||
|
- name: "Create a default ZSH configuration"
|
||||||
|
template:
|
||||||
|
src: templates/.zshrc
|
||||||
|
dest: "~/.zshrc"
|
||||||
|
owner: "user"
|
||||||
|
force: yes
|
||||||
|
|
||||||
|
- name: Check that Auto Suggestions is installed
|
||||||
|
stat:
|
||||||
|
path: ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
|
||||||
|
register: auto_suggestions_result
|
||||||
|
|
||||||
|
- name: Install Auto Suggestions
|
||||||
|
shell: git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
|
||||||
|
when: not auto_suggestions_result.stat.exists
|
||||||
|
|
||||||
|
- user:
|
||||||
|
name: "user"
|
||||||
|
shell: /bin/zsh
|
||||||
|
|
||||||
|
- name: Create bin folder
|
||||||
|
ansible.builtin.file:
|
||||||
|
path: ~/.local/bin
|
||||||
|
owner: "user"
|
||||||
|
group: "user"
|
||||||
|
mode: '0770'
|
||||||
|
state: directory
|
||||||
|
|||||||
@@ -115,4 +115,4 @@ source $ZSH/oh-my-zsh.sh
|
|||||||
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
# alias ohmyzsh="mate ~/.oh-my-zsh"
|
||||||
# Install Ruby Gems to ~/gems
|
# Install Ruby Gems to ~/gems
|
||||||
export GEM_HOME="$HOME/gems"
|
export GEM_HOME="$HOME/gems"
|
||||||
export PATH="$HOME/gems/bin:$PATH"
|
export PATH="$HOME/gems/bin:/usr/local/go/bin:$PATH"
|
||||||
@@ -15,4 +15,4 @@ dconf:
|
|||||||
- {key: '/org/gnome/shell/extensions/pop-shell/tile-by-default', value: "true"}
|
- {key: '/org/gnome/shell/extensions/pop-shell/tile-by-default', value: "true"}
|
||||||
- {key: '/org/gnome/shell/extensions/pop-shell/gap-inner', value: "uint32 1"}
|
- {key: '/org/gnome/shell/extensions/pop-shell/gap-inner', value: "uint32 1"}
|
||||||
- {key: '/org/gnome/shell/extensions/pop-shell/gap-outer', value: "uint32 1"}
|
- {key: '/org/gnome/shell/extensions/pop-shell/gap-outer', value: "uint32 1"}
|
||||||
- {key: '/org/gnome/shell/extensions/dash-to-dock/dash-max-icon', value: "32"}
|
- {key: '/org/gnome/shell/extensions/dash-to-dock/dash-max-icon-size', value: "32"}
|
||||||
|
|||||||
Reference in New Issue
Block a user