Skip to main content

max / alloy

2.2 KB · 59 lines History Blame Raw
1 # Alloy Nushell environment
2 #
3 # Loaded before config.nu on shell start. Sets PATH, editor, cache dirs,
4 # and any environment-shaping that must happen before config runs.
5
6 # -------------------------------------------------------------------
7 # Editor
8 # -------------------------------------------------------------------
9 $env.EDITOR = "hx"
10 $env.VISUAL = "hx"
11 $env.PAGER = "less -R"
12
13 # -------------------------------------------------------------------
14 # PATH additions
15 # -------------------------------------------------------------------
16 $env.PATH = ($env.PATH
17 | split row (char esep)
18 | prepend [
19 ($env.HOME | path join ".local" "bin")
20 ($env.HOME | path join ".cargo" "bin")
21 ]
22 | uniq
23 )
24
25 # -------------------------------------------------------------------
26 # Locale
27 # -------------------------------------------------------------------
28 $env.LANG = "en_US.UTF-8"
29
30 # -------------------------------------------------------------------
31 # XDG base directories (Fedora sets these; make explicit if missing)
32 # -------------------------------------------------------------------
33 if 'XDG_CONFIG_HOME' not-in $env {
34 $env.XDG_CONFIG_HOME = ($env.HOME | path join ".config")
35 }
36 if 'XDG_CACHE_HOME' not-in $env {
37 $env.XDG_CACHE_HOME = ($env.HOME | path join ".cache")
38 }
39 if 'XDG_DATA_HOME' not-in $env {
40 $env.XDG_DATA_HOME = ($env.HOME | path join ".local" "share")
41 }
42 if 'XDG_STATE_HOME' not-in $env {
43 $env.XDG_STATE_HOME = ($env.HOME | path join ".local" "state")
44 }
45
46 # -------------------------------------------------------------------
47 # Rio terminal identification (for yazi's kitty-graphics detection)
48 # -------------------------------------------------------------------
49 # Rio sets TERM_PROGRAM=rio itself; no override needed here. Left as
50 # a comment for future-Alloy debugging.
51
52 # -------------------------------------------------------------------
53 # Cursor: Bibata Modern Classic, size 24. Also declared in
54 # ~/.icons/default/index.theme and the GTK settings.ini; env vars here
55 # cover apps and toolkits that read XCURSOR_* directly.
56 # -------------------------------------------------------------------
57 $env.XCURSOR_THEME = "Bibata-Modern-Classic"
58 $env.XCURSOR_SIZE = "24"
59