src.elv.sh@v0.21.0-dev.0.20240515223629-06979efb9a2a/pkg/mods/runtime/runtime_test.elvts (about)

     1  # runtime module with good paths #
     2  
     3  //use-runtime-good-paths
     4  
     5  ~> put $runtime:lib-dirs
     6  ▶ [/lib/1 /lib/2]
     7  ~> put $runtime:rc-path
     8  ▶ /path/to/rc.elv
     9  ~> put $runtime:effective-rc-path
    10  ▶ /path/to/effective/rc.elv
    11  ~> put $runtime:elvish-path
    12  ▶ /path/to/elvish
    13  
    14  # runtime module with bad paths #
    15  
    16  //use-runtime-bad-paths
    17  
    18  ~> put $runtime:lib-dirs
    19  ▶ []
    20  ~> put $runtime:elvish-path
    21  ▶ $nil
    22  ~> put $runtime:rc-path
    23  ▶ $nil
    24  ~> put $runtime:effective-rc-path
    25  ▶ $nil