Skip to content

Commit

Permalink
add direnv and other cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mtaron committed Apr 25, 2024
1 parent 811603b commit c5435ae
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions home/.chezmoiexternal.yaml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
clone:
args: [ "--depth", "1" ]

{{ $direnv_version := (gitHubLatestRelease "direnv/direnv").TagName -}}
.local/bin/direnv:
type: file
url: https://github.com/direnv/direnv/releases/download/{{ $direnv_version }}/direnv.linux-amd64
executable: true

{{ if and (not .transient) (not .headless) -}}
{{ $nerd_fonts_version := (gitHubLatestRelease "ryanoasis/nerd-fonts").TagName -}}
.local/share/fonts/monaspice:
Expand Down
2 changes: 2 additions & 0 deletions home/private_dot_config/alacritty/alacritty.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ dynamic_padding = true

[font]
normal = { family = "MonaspiceNe NFM", style = "Regular" }
bold = { family = "MonaspiceNe NFM", style = "Medium" }
bold_italic = { family = "MonaspiceNe NFM", style = "Medium Italic" }
size = 12

[selection]
Expand Down
5 changes: 3 additions & 2 deletions home/private_dot_config/git/config.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@
{{- end }}
[credential "https://github.com"]
username = {{ .user.github }}
{{- if lookPath "gh" }}
{{- $gh := lookPath "gh" -}}
{{- if $gh }}
helper =
helper = {{ lookPath "gh" }} auth git-credential
helper = {{ quote $gh }} auth git-credential
{{- end }}
[credential "https://dev.azure.com"]
useHttpPath = true
Expand Down
3 changes: 0 additions & 3 deletions home/private_dot_zshenv.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ export AZCOPY_LOG_LOCATION=/tmp/azcopy
{{- end }}

{{ if lookPath "docker" -}}
export DOCKER_BUILDKIT=1
export-if-unset DOCKER_CONFIG "$XDG_CONFIG_HOME/docker"
{{- else if lookPath "podman" -}}
export-if-unset DOCKER_HOST "unix:///run/user/$(id -u)/podman/podman.sock"
{{- end }}

{{ if lookPath "pyenv" -}}
Expand Down

0 comments on commit c5435ae

Please sign in to comment.