add .jh to promp config when in a site

This commit is contained in:
Jonathan Hodgson 2017-12-19 11:41:02 +00:00
parent 2974e2e23a
commit 150c19846b

View file

@ -37,10 +37,11 @@ function my_dir(){
elif [[ -e "$ph/bin/magento" ]]; then #If magento elif [[ -e "$ph/bin/magento" ]]; then #If magento
icon=$magentoSiteIcon icon=$magentoSiteIcon
fi fi
current_path=$(echo $current_path | sed -r -e "s/$homeIcon\/Sites\/([a-z_\-]*)\/public_html/$icon\1.local/") current_path=$(echo $current_path | sed -r -e "s/$homeIcon\/Sites\/([a-z_\-]*)\/public_html/$icon\1.local.jh/")
fi fi
# Replace Dropbox with icon # Replace Dropbox with icon
current_path=$(echo $current_path | sed -r -e "s/$homeIcon\/Dropbox/$dropboxIcon/") current_path=$(echo $current_path | sed -r -e "s/$homeIcon\/Dropbox/$dropboxIcon/")