diff --git a/DockerfileUbuntu b/DockerfileUbuntu
index 45c6038..a471503 100644
--- a/DockerfileUbuntu
+++ b/DockerfileUbuntu
@@ -6,6 +6,6 @@ RUN wget https://retoor.molodetz.nl/api/packages/retoor/generic/r/1.0.0/r
 
 RUN chmod +x r
 
-RUN cp r /usr/local/bin
+RUN mv r /usr/local/bin
 
 CMD ["r"]
diff --git a/terminal/.bashrc b/terminal/.bashrc
index ee7d93f..448c756 100644
--- a/terminal/.bashrc
+++ b/terminal/.bashrc
@@ -93,7 +93,6 @@ fi
 
 
 
-echo "R is installed. Type r to run it."
 
 # enable programmable completion features (you don't need to enable
 # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
@@ -102,3 +101,21 @@ echo "R is installed. Type r to run it."
 #    . /etc/bash_completion
 #fi
 export PS1="root@snek: "
+
+if [ -d "$HOME/.local/bin" ] ; then
+    PATH="$HOME/.local/bin:$PATH"
+fi
+
+
+function r_update(){
+    if [ -f "r" ]; then
+        rm "r"
+    fi
+    curl -OJ https://retoor.molodetz.nl/api/packages/retoor/generic/r/1.0.0/r --silent
+    chmod +x r
+    mv r /usr/local/bin/r
+}
+
+r_update 
+
+r
diff --git a/terminal/.profile b/terminal/.profile
index c4c7402..789e671 100644
--- a/terminal/.profile
+++ b/terminal/.profile
@@ -7,3 +7,5 @@ if [ "$BASH" ]; then
 fi
 
 mesg n 2> /dev/null || true
+
+