summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/cd-after-exit.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/cd-after-exit.txt b/doc/cd-after-exit.txt
index 18598cd3..567c20ff 100644
--- a/doc/cd-after-exit.txt
+++ b/doc/cd-after-exit.txt
@@ -113,6 +113,10 @@ or, if properly installed:
 
     bash$ source ranger ranger
 
+A convenient way of using this feature is adding this line to your bashrc:
+
+    alias rn='source ranger ranger'
+
 
 == Open issues
 
^
b94e94e0 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31





                                                                             
                                 

                     
                       


















                                      
          
 
# Listing 1 of https://raytracing.github.io/books/RayTracingInOneWeekend.html
# (simplified)
#
# To run (on Linux):
#   $ git clone https://github.com/akkartik/mu
#   $ cd mu
#   $ ./translate raytracing/1.mu
#   $ ./a.elf > 1.ppm

fn main -> _/ebx: int {
  print-string 0, "P3\n256 256\n255\n"
  var j/ecx: int <- copy 0xff
  {
    compare j, 0
    break-if-<
    var i/eax: int <- copy 0
    {
      compare i, 0xff
      break-if->
      print-int32-decimal 0, i
      print-string 0, " "
      print-int32-decimal 0, j
      print-string 0, " 64\n"
      i <- increment
      loop
    }
    j <- decrement
    loop
  }
  return 0
}