Skip to content

Commit

Permalink
Use rc template
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmorganson committed Jan 8, 2025
1 parent 92a4d0a commit 39c5498
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions home/dot_config/nushell/config.nu.tmpl
Original file line number Diff line number Diff line change
@@ -1,18 +1,4 @@
{{- $mise := joinPath .chezmoi.homeDir ".local/bin/mise" -}}

{{ output $mise "activate" "nu" }}

{{- $aliases := output $mise "exec" "rust" "--" $mise "exec" "cargo:https://github.com/nomyfan/alias-rs@branch:main" "--" "als" "init" "bash" -}}
{{- range $index, $line := splitList "\n" $aliases -}}
{{- if hasPrefix "alias" $line -}}
{{- $parts := splitn "=" 2 $line -}}
{{- $name := $parts._0 -}}
{{- $value := $parts._1 -}}
{{- nindent 0 (printf "%s = %s" $name ($value | replace "\"" "")) -}}
{{- end -}}
{{- end }}

{{ output $mise "exec" "starship" "--" "starship" "init" "nu" }}
{{- template "rc" (dict "SHELL" "nu") -}}

$env.config.edit_mode = "vi"
$env.config.show_banner = false
Expand Down

0 comments on commit 39c5498

Please sign in to comment.