Install direnv

This commit is contained in:
Jake Howard 2023-02-19 18:44:24 +00:00
parent 33a70e2943
commit 4acc679c00
Signed by: jake
GPG key ID: 57AFB45680EDD477
4 changed files with 19 additions and 0 deletions

2
files/direnv.toml Normal file
View file

@ -0,0 +1,2 @@
[global]
load_dotenv = true

View file

@ -24,6 +24,8 @@ autoload -Uz colors && colors
local ret_status="%(?:%{$fg_bold[green]%}λ :%{$fg_bold[red]%}λ )" local ret_status="%(?:%{$fg_bold[green]%}λ :%{$fg_bold[red]%}λ )"
export PROMPT="${ret_status} %{$fg_bold[green]%}%n@%m%{$reset_color%}:%{$fg_bold[blue]%}%~%{$reset_color%}$ " export PROMPT="${ret_status} %{$fg_bold[green]%}%n@%m%{$reset_color%}:%{$fg_bold[blue]%}%~%{$reset_color%}$ "
eval "$(direnv hook zsh)"
alias src="source {{ home }}/.zshrc && tmux source {{ home }}/.tmux.conf" alias src="source {{ home }}/.zshrc && tmux source {{ home }}/.tmux.conf"
# If not running interactively, don't do anything # If not running interactively, don't do anything

View file

@ -11,6 +11,7 @@
- catimg - catimg
- climate - climate
- cmatrix - cmatrix
- direnv
- exa - exa
- fd - fd
- fpp - fpp
@ -95,6 +96,19 @@
mode: 0644 mode: 0644
owner: "{{ user }}" owner: "{{ user }}"
- name: Create direnv config directory
file:
path: "{{ home }}/.config/direnv/"
state: directory
owner: "{{ user }}"
mode: 0755
- name: Create direnv config
copy:
src: ./files/direnv.toml
dest: "{{ home }}/.config/direnv/direnv.toml"
mode: 0644
owner: "{{ user }}"
- name: Create terminator directory - name: Create terminator directory
file: file:

View file

@ -82,6 +82,7 @@
- bbenoist.vagrant - bbenoist.vagrant
- GitLab.gitlab-workflow - GitLab.gitlab-workflow
- formulahendry.auto-rename-tag - formulahendry.auto-rename-tag
- mkhl.direnv
- name: Install VSCode extensions - name: Install VSCode extensions
shell: code --install-extension {{ item }} --force shell: code --install-extension {{ item }} --force