]> gitweb.factorcode.org Git - factor.git/commitdiff
fix a couple more tilde paths.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 27 Feb 2018 01:33:36 +0000 (17:33 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 27 Feb 2018 01:33:36 +0000 (17:33 -0800)
basis/command-line/command-line-docs.factor
extra/mason/test/test.factor

index 5b41e9abe9f74d9864c4df4fd93a8c29ad68f6d1..4ba7d66623c213d5841970a22451841cd840683a 100644 (file)
@@ -126,9 +126,9 @@ ARTICLE: "rc-files" "Running code on startup"
 $nl
 "If you are unsure where the files should be located, evaluate the following code:"
 { $code
-    "USE: command-line"
-    "\".factor-rc\" rc-path print"
-    "\".factor-boot-rc\" rc-path print"
+    "USING: io io.pathnames ;"
+    "\"~/.factor-rc\" absolute-path print"
+    "\"~/.factor-boot-rc\" absolute-path print"
 }
 "Here is an example " { $snippet ".factor-boot-rc" } " which sets up your developer name:"
 { $code
index bd2e9dc50aa0bdb08f280a07b9a5818c59f43ff2..b7f7769413fa3dbbe9e506553e2ab0ed75976b2c 100644 (file)
@@ -94,7 +94,7 @@ M: method word-vocabulary "method-generic" word-prop word-vocabulary ;
 
 : run-mason-rc ( -- )
     t "user-init" [
-        ".factor-mason-rc" rc-path try-user-init
+        "~/.factor-mason-rc" try-user-init
     ] with-variable ;
 
 : check-user-init-errors ( -- ? )