From 331cf53e2ae3e42e5dfcffaa94027bf1236d6f0c Mon Sep 17 00:00:00 2001
From: Fredrik Bagge Carlson <cont-frb@ulund.org>
Date: Wed, 23 Aug 2017 22:56:37 +0200
Subject: [PATCH] Update install instructions

---
 README.md | 19 ++++++++++++++++---
 1 file changed, 16 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index 6830c54..7592e7b 100644
--- a/README.md
+++ b/README.md
@@ -1,11 +1,24 @@
 # Installation (specific to lab 1 FRTN35: Frequency response analysis)
 1. Open a terminal
-2. Type `export JULIA_PKGDIR=/var/tmp/$USER; export JULIA_EDITOR=gedit`. (Feel free to choose another text editor if you don't like gedit.) At the moment, this has to be done every time you restart the terminal (Anders Blomdell will fix). 
-3. Type `mkdir FRTN35_lab1; cd FRTN35_lab1`
-4. Start `julia`
+2. Type `mkdir FRTN35_lab1; cd FRTN35_lab1`
+3. Paste the following in a terminal
+```
+printf 'export JULIA_PKGDIR=/var/tmp/$USER\n' > julialab1
+printf 'export JULIA_EDITOR=gedit\n' >> julialab1
+printf 'julia6\n' >> julialab1
+chmod +x julialab1
+```
+(Feel free to choose another text editor if you don't like gedit.) At the moment, this has to be done every time you restart the terminal (Anders Blomdell will fix).
+This step only needs to be done once. Henceforth you can start julia woth the environment setup by running `./julialab1` in the current directory.
+4. Start `./julialab`
 5. Install `BallAndBeam.jl` using command `Pkg.clone("https://gitlab.control.lth.se/processes/BallAndBeam.jl.git"); using BallAndBeam` Lots of packages will now be installed, this will take some time.
 6. Type `cp(Pkg.dir("BallAndBeam","src","FRTN35_lab1.jl"), "FRTN35_lab1.jl"); edit("FRTN35_lab1.jl")`. The script `FRTN35_lab1.jl` will now open in the chosen text editor, edit it while following the lab manual. If unsure about how a function works, type `?function_name` for help.
 
+printf 'export JULIA_PKGDIR=/var/tmp/$USER; export JULIA_EDITOR=gedit' > julialab
+printf 'julia' >> julialab
+chmod +x julialab
+
+
 # Documentation
 Build and launch the documentation website using:
 ```julia
-- 
GitLab