From dbee5f4feaae157a9d191262a0b24653a04f31ca Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Thu, 25 May 2023 14:32:32 -0700 Subject: [PATCH] Convert direnv to chezmoi --- direnv/.config/bash/bashrc.d/direnv.sh | 1 - direnv/.config/zsh/zshrc.d/direnv.zsh | 1 - dot_config/bash/bashrc.d/direnv.sh.tmpl | 3 +++ dot_config/zsh/zshrc.d/direnv.zsh.tmpl | 3 +++ .../bin/executable_install-direnv | 0 5 files changed, 6 insertions(+), 2 deletions(-) delete mode 100644 direnv/.config/bash/bashrc.d/direnv.sh delete mode 100644 direnv/.config/zsh/zshrc.d/direnv.zsh create mode 100644 dot_config/bash/bashrc.d/direnv.sh.tmpl create mode 100644 dot_config/zsh/zshrc.d/direnv.zsh.tmpl rename direnv/.local/bin/install-direnv-home => dot_local/bin/executable_install-direnv (100%) mode change 100755 => 100644 diff --git a/direnv/.config/bash/bashrc.d/direnv.sh b/direnv/.config/bash/bashrc.d/direnv.sh deleted file mode 100644 index 885c279..0000000 --- a/direnv/.config/bash/bashrc.d/direnv.sh +++ /dev/null @@ -1 +0,0 @@ -eval "$(direnv hook bash)" diff --git a/direnv/.config/zsh/zshrc.d/direnv.zsh b/direnv/.config/zsh/zshrc.d/direnv.zsh deleted file mode 100644 index 6aa8b1f..0000000 --- a/direnv/.config/zsh/zshrc.d/direnv.zsh +++ /dev/null @@ -1 +0,0 @@ -eval "$(direnv hook zsh)" diff --git a/dot_config/bash/bashrc.d/direnv.sh.tmpl b/dot_config/bash/bashrc.d/direnv.sh.tmpl new file mode 100644 index 0000000..1b68945 --- /dev/null +++ b/dot_config/bash/bashrc.d/direnv.sh.tmpl @@ -0,0 +1,3 @@ +{{ if lookPath "direnv" -}} +eval "$(direnv hook bash)" +{{- end }} diff --git a/dot_config/zsh/zshrc.d/direnv.zsh.tmpl b/dot_config/zsh/zshrc.d/direnv.zsh.tmpl new file mode 100644 index 0000000..c0531a1 --- /dev/null +++ b/dot_config/zsh/zshrc.d/direnv.zsh.tmpl @@ -0,0 +1,3 @@ +{{ if lookPath "direnv" -}} +eval "$(direnv hook zsh)" +{{- end }} diff --git a/direnv/.local/bin/install-direnv-home b/dot_local/bin/executable_install-direnv old mode 100755 new mode 100644 similarity index 100% rename from direnv/.local/bin/install-direnv-home rename to dot_local/bin/executable_install-direnv