aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--profile.dot.link10
1 files changed, 10 insertions, 0 deletions
diff --git a/profile.dot.link b/profile.dot.link
index a2a4ddd..93f80eb 100644
--- a/profile.dot.link
+++ b/profile.dot.link
@@ -43,6 +43,11 @@ if [ -d "/vagrant/bin" ]; then
PATH="$PATH:/vagrant/bin"
fi
+# Add /srv into PATH, useful if we're inside a virtual machine
+if [ -d "/srv/bin" ]; then
+ PATH="$PATH:/srv/bin"
+fi
+
# Add composer into PATH
if [ -d "$HOME/.composer/vendor/bin" ]; then
PATH="$PATH:$HOME/.composer/vendor/bin:$PATH"
@@ -244,6 +249,11 @@ if [ -z "$STARTUP_FOLDER" ] && [ -d "/vagrant" ]; then
STARTUP_FOLDER="/vagrant"
fi
+# Detect if we're inside a kvmx VM
+if [ -z "$STARTUP_FOLDER" ] && [ -f "/srv/kvmxfile" ]; then
+ STARTUP_FOLDER="/srv"
+fi
+
# Make sure we start at the startup folder, defaulting to home
cd $STARTUP_FOLDER