diff --git a/files/shell_extras b/files/shell_extras index 9007a5c..4acc63e 100644 --- a/files/shell_extras +++ b/files/shell_extras @@ -49,3 +49,23 @@ function which_alias { # Ensures that passphrases can be entered when signing # git commits. export GPG_TTY=$(tty) + +############ +# CONFIG # +############ + +# Basic ZSH things. +export ZSH="/home/marc/.oh-my-zsh" +ZSH_THEME="lambda" +plugins=(git) + +# OMZ configuration. +source $ZSH/oh-my-zsh.sh + +#Initialize Starship prompt +eval "$(starship init zsh)" + +unsetopt autocd + +# Local binaries. +export PATH=$PATH:$HOME/.local/bin diff --git a/playbook.yml b/playbook.yml index 7b7c5af..db4489a 100644 --- a/playbook.yml +++ b/playbook.yml @@ -13,6 +13,11 @@ pkg: - zsh - tmux + - name: Install OMZsh + shell: | + sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" + args: + creates: "{{ lookup('ansible.builtin.env', 'HOME') }}/.oh-my-zsh" - name: Install CLI tooling apt: pkg: