Install direnv
This commit is contained in:
parent
33a70e2943
commit
4acc679c00
4 changed files with 19 additions and 0 deletions
2
files/direnv.toml
Normal file
2
files/direnv.toml
Normal file
|
@ -0,0 +1,2 @@
|
|||
[global]
|
||||
load_dotenv = true
|
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue