diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2017-10-26 14:01:14 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2017-10-26 14:01:14 -0200 |
commit | 4c37d2159658e400d5d6567de9d261c94d2934c1 (patch) | |
tree | 24294ee34fff76c76362398049e12d9d3d0b2c3d | |
parent | 53870dd9b1bb27491d2810c1b2e9ae52ae60b139 (diff) | |
download | profile-4c37d2159658e400d5d6567de9d261c94d2934c1.tar.gz profile-4c37d2159658e400d5d6567de9d261c94d2934c1.tar.bz2 |
Vagrant and composer into PATH/STARTUP_FOLDER
-rw-r--r-- | profile.dot.link | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/profile.dot.link b/profile.dot.link index fb1bbe8..a2a4ddd 100644 --- a/profile.dot.link +++ b/profile.dot.link @@ -38,6 +38,16 @@ if [ -d "$HOME/apps/stowpkg/tree/`uname -m`/bin" ]; then PATH="$HOME/apps/stowpkg/tree/`uname -m`/bin:$PATH" fi +# Add /vagrant into PATH, useful if we're inside a virtual machine +if [ -d "/vagrant/bin" ]; then + PATH="$PATH:/vagrant/bin" +fi + +# Add composer into PATH +if [ -d "$HOME/.composer/vendor/bin" ]; then + PATH="$PATH:$HOME/.composer/vendor/bin:$PATH" +fi + # Export PATH export PATH=$PATH @@ -229,6 +239,11 @@ fi # Avoid Enter SOCKS5 password for user@127.0.0.1 when using ssh+tor export SOCKS5_PASSWORD="" +# Detect if we're inside a vagrant VM +if [ -z "$STARTUP_FOLDER" ] && [ -d "/vagrant" ]; then + STARTUP_FOLDER="/vagrant" +fi + # Make sure we start at the startup folder, defaulting to home cd $STARTUP_FOLDER |