Fix paths for windows

main
trivernis 10 months ago
parent 642fdf8cd8
commit 23d02a0d91
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: DFFFCC2C7A02DB45

@ -1,4 +1,4 @@
path = "{{dirs.config}}" path = '{{dirs.config}}'
ignored = [ ignored = [
{{#if-not-installed podman}}"nushell/completions/podman.nu",{{/if-not-installed}} {{#if-not-installed podman}}"nushell/completions/podman.nu",{{/if-not-installed}}

@ -1,4 +1,4 @@
let fact = (try { http get https://uselessfacts.jsph.pl/api/v2/facts/random | get text } catch { "I wasn't able to provide a fact." }); let fact = (try { http get https://uselessfacts.jsph.pl/api/v2/facts/random | get text } catch { "I wasn't able to provide a fact." });
echo $"Hello (ansi purple_bold)($env.USER)(ansi reset), echo $"Hello (ansi purple_bold)({{#if flags.windows}}$env.USERNAME{{else}}$env.USER{{/if}})(ansi reset),
it's the (ansi purple_bold)(date now | format date '%d.%m.%Y')(ansi reset) at (ansi purple_bold)(date now | format date '%H:%M:%S')(ansi reset) it's the (ansi purple_bold)(date now | format date '%d.%m.%Y')(ansi reset) at (ansi purple_bold)(date now | format date '%H:%M:%S')(ansi reset)
Did you know: (ansi purple_bold)($fact)(ansi reset)" Did you know: (ansi purple_bold)($fact)(ansi reset)"

@ -1 +1 @@
path = "{{dirs.home}}" path = '{{dirs.home}}'

@ -1 +1 @@
path = "{{dirs.data}}" path = '{{dirs.data}}'

Loading…
Cancel
Save