Skip to content

Commit

Permalink
Install direnv with chezmoiexternal
Browse files Browse the repository at this point in the history
As now direnv/direnv#845 was merged and we
finally have first-class support for .env files. The move to
chezmoiexternal was due to 2 things: because I want the new version fast
and because I make it indenpendent of the OS, allowing it to be used on
devcontainers as well.
  • Loading branch information
felipecrs committed Dec 23, 2021
1 parent 2a984ff commit bae2a67
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions home/.chezmoiexternal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
stripComponents: 1
exact: true

".local/bin/direnv":
type: file
url: "https://github.com/direnv/direnv/releases/download/v{{ template "get-github-latest-version" list "direnv/direnv" $cache }}/direnv.linux-{{ .chezmoi.arch }}"
executable: true

{{ if not .is_devcontainer -}}
{{ if .is_gnome -}}
".local/share/nautilus-python/extensions/code-nautilus.py":
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
true || source ../.chezmoitemplates/scripts-library

readonly wanted_packages=(
direnv
apt-transport-https
ca-certificates
gnupg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ true || source ../.chezmoitemplates/scripts-library

readonly unwanted_packages=(
gcmcore
direnv
)

for package in "${unwanted_packages[@]}"; do
Expand Down

0 comments on commit bae2a67

Please sign in to comment.