aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-10-09 14:26:18 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-10-09 14:26:18 -0300
commit32d4f40991be70db0224f2625d15f44abb070f36 (patch)
treebc70d346812aa115e7d072685c0cfa0c86dc3e24
parentdeb9bcc9781bc8da1e677d803db635ef8110bb15 (diff)
downloadprofile-32d4f40991be70db0224f2625d15f44abb070f36.tar.gz
profile-32d4f40991be70db0224f2625d15f44abb070f36.tar.bz2
Startup commands and folder
-rw-r--r--profile.dot.link9
1 files changed, 7 insertions, 2 deletions
diff --git a/profile.dot.link b/profile.dot.link
index 6fb9472..47b3f6c 100644
--- a/profile.dot.link
+++ b/profile.dot.link
@@ -245,5 +245,10 @@ fi
# Avoid Enter SOCKS5 password for user@127.0.0.1 when using ssh+tor
export SOCKS5_PASSWORD=""
-# Make sure we start at home
-cd
+# Make sure we start at the startup folder, defaulting to home
+cd $STARTUP_FOLDER
+
+# Run startup commands
+if [ ! -z "$STARTUP" ]; then
+ $STARTUP
+fi