Update stuff for st

This commit is contained in:
Jonathan Hodgson 2018-01-31 17:33:23 +00:00
parent b4c1125dc0
commit 3ffa47b4c8
6 changed files with 46 additions and 11 deletions

View file

@ -10,6 +10,7 @@ function my_dir(){
magentoSiteIcon=" "
dropboxIcon=""
seperator="  "
seperatorDual="  "
root="$seperator"
# Gets the path.
local current_path="$(print -P "%~")"
@ -35,7 +36,7 @@ function my_dir(){
current_path=$(echo $current_path | sed -r -e "s/wp\-content\//wpc\//")
if [[ $(tput cols) -lt 100 ]]; then
current_path=$(echo $current_path | sed -r -e "s/wpc\/themes\///")
current_path=$(echo $current_path | sed -r -e "s/wpc\/themes\//\//")
fi
elif [[ -e "$ph/bin/magento" ]]; then #If magento
@ -53,6 +54,9 @@ function my_dir(){
# Set the root
current_path=$(echo $current_path | sed -r -e "s/^\//$root/g")
# Set the dual seperator
current_path=$(echo $current_path | sed -r -e "s/\/\//$seperatorDual/g")
# Set the seperator
current_path=$(echo $current_path | sed -r -e "s/\//$seperator/g")