diff --git a/dot_config/profile/env.d/base.env b/dot_config/profile/env.d/base.env deleted file mode 100644 index 48cc8a0..0000000 --- a/dot_config/profile/env.d/base.env +++ /dev/null @@ -1,7 +0,0 @@ -#shellcheck disable=SC2034 -BROWSER=firefox -HISTCONTROL=ignoredups:erasedups:ignorespace -HISTFILESIZE= -HISTSIZE= -MAN_DIR=${XDG_DATA_HOME}/man/man1 -PATH="${XDG_BIN_HOME}:${PATH}" diff --git a/dot_config/profile/env.d/base.env.tmpl b/dot_config/profile/env.d/base.env.tmpl new file mode 100644 index 0000000..0f1a3e1 --- /dev/null +++ b/dot_config/profile/env.d/base.env.tmpl @@ -0,0 +1,38 @@ +#shellcheck disable=SC2034 +BROWSER=firefox +HISTCONTROL=ignoredups:erasedups:ignorespace +HISTFILESIZE= +HISTSIZE= +MAN_DIR=${XDG_DATA_HOME}/man/man1 +PATH=${XDG_BIN_HOME}:${PATH} + +{{ if lookPath "bat" -}} +BAT_PAGER=never +BAT_STYLE=plain +BAT_THEME=zenburn +MANPAGER="sh -c 'col -bx | bat -l man -p'" +{{ end -}} + +{{ if eq .chezmoi.os "darwin" -}} +CLICOLOR=1 +{{ end -}} + +{{ if .hellotech -}} +GOPRIVATE=github.com/HelloTech +PULUMI_SKIP_UPDATE_CHECK=true +{{ end -}} + +{{ if and (lookPath "node") (stat (joinPath .chezmoi.homeDir ".config" "npm" "npmrc")) -}} +NPM_CONFIG_USERCONFIG="${XDG_CONFIG_HOME}/npm/npmrc" +{{ end -}} + +{{ if lookPath "rg" -}} +RIPGREP_CONFIG_PATH="${XDG_CONFIG_HOME}/ripgrep/config" +{{ end -}} + +{{ if or (lookPath "vim") (lookPath "nvim") -}} +VIMINIT='source $XDG_CONFIG_HOME/vim/vimrc' +MYVIMRC='$XDG_CONFIG_HOME/vim/vimrc' +{{- end }} + +# vim: filetype=sh diff --git a/dot_config/profile/env.d/bat.env.tmpl b/dot_config/profile/env.d/bat.env.tmpl deleted file mode 100644 index ec6de4a..0000000 --- a/dot_config/profile/env.d/bat.env.tmpl +++ /dev/null @@ -1,7 +0,0 @@ -{{ if lookPath "bat" -}} -#shellcheck disable=SC2034 -BAT_PAGER=never -BAT_STYLE=plain -BAT_THEME=zenburn -MANPAGER="sh -c 'col -bx | bat -l man -p'" -{{- end }} diff --git a/dot_config/profile/env.d/darwin.env.tmpl b/dot_config/profile/env.d/darwin.env.tmpl deleted file mode 100644 index 2699c42..0000000 --- a/dot_config/profile/env.d/darwin.env.tmpl +++ /dev/null @@ -1,4 +0,0 @@ -{{ if eq .chezmoi.os "darwin" -}} -#shellcheck disable=SC2034 -CLICOLOR=1 -{{- end }} diff --git a/dot_config/profile/env.d/hellotech.env.tmpl b/dot_config/profile/env.d/hellotech.env.tmpl deleted file mode 100644 index 49da87d..0000000 --- a/dot_config/profile/env.d/hellotech.env.tmpl +++ /dev/null @@ -1,5 +0,0 @@ -{{ if .hellotech -}} -# shellcheck disable=SC2034 -GOPRIVATE=github.com/HelloTech -PULUMI_SKIP_UPDATE_CHECK=true -{{- end }} diff --git a/dot_config/profile/env.d/node.env.tmpl b/dot_config/profile/env.d/node.env.tmpl deleted file mode 100644 index ec43c6e..0000000 --- a/dot_config/profile/env.d/node.env.tmpl +++ /dev/null @@ -1,6 +0,0 @@ -{{ if lookPath "node" -}} -# shellcheck shell=bash -#ft=sh -# shellcheck disable=SC2034 -NPM_CONFIG_USERCONFIG="${XDG_CONFIG_HOME}/npm/npmrc" -{{- end }} diff --git a/dot_config/profile/env.d/ripgrep.env.tmpl b/dot_config/profile/env.d/ripgrep.env.tmpl deleted file mode 100644 index a3e2d6c..0000000 --- a/dot_config/profile/env.d/ripgrep.env.tmpl +++ /dev/null @@ -1,4 +0,0 @@ -{{ if lookPath "rg" -}} -#shellcheck disable=SC2034 -RIPGREP_CONFIG_PATH="${XDG_CONFIG_HOME}/ripgrep/config" -{{- end }} diff --git a/dot_config/profile/env.d/vim.env.tmpl b/dot_config/profile/env.d/vim.env.tmpl deleted file mode 100644 index 29fb23f..0000000 --- a/dot_config/profile/env.d/vim.env.tmpl +++ /dev/null @@ -1,5 +0,0 @@ -{{ if or (lookPath "vim") (lookPath "nvim") -}} -# shellcheck disable=SC2016,SC2034 -VIMINIT='source $XDG_CONFIG_HOME/vim/vimrc' -MYVIMRC='$XDG_CONFIG_HOME/vim/vimrc' -{{- end }}