[Fix #303] Remove extra '/' in sorin theme

This commit is contained in:
Sorin Ionescu 2012-09-28 18:24:02 -04:00
parent be0e4245a6
commit eb93677e4a

View file

@ -18,7 +18,7 @@ function prompt_sorin_pwd {
_prompt_sorin_pwd="$MATCH"
unset MATCH
else
_prompt_sorin_pwd="${${(@j:/:M)${(@s:/:)pwd}##.#?}:h}/${pwd:t}"
_prompt_sorin_pwd="${${${(@j:/:M)${(@s:/:)pwd}##.#?}:h}%/}/${pwd:t}"
fi
}