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