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]%}λ )"
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"
# If not running interactively, don't do anything

View file

@ -11,6 +11,7 @@
- catimg
- climate
- cmatrix
- direnv
- exa
- fd
- fpp
@ -95,6 +96,19 @@
mode: 0644
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
file:

View file

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