repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

nushell: expand the dotfiles env var so that path is valid on win32

0c63ca456e7403d827860e23b03d24dc35118196

Oliver Krylow <o.krylow@isp-insoft.de> ·

unsigned

Browse filesCompare with HEAD

Changed files (1)

+1 / −1 text lines

Diff layout

nushell/env.nu

Modified

+1 / −1 text lines

33$env.WIN32 = ( $nu.os-info.name =~ "windows" )
55$env.WORKSPACE = if $env.WIN32 { "~/Workspaces" } else { "~/Workspace" | path expand }
6$env.DOTFILES = ( $env.WORKSPACE | path join 'dotfiles' )
6$env.DOTFILES = ( $env.WORKSPACE | path join 'dotfiles' | path expand)
77$env.NOTES = ("~/Notes" | path expand)
88$env.TOOLS = ("~/Tools" | path expand)
99$env.CARGO_HOME = ( "~/.cargo" | path expand )