Fall back to powerline-render when using powerline.sh

This commit is contained in:
ZyX 2014-08-02 21:10:15 +04:00
parent fed43e8af5
commit f3d972849e
1 changed files with 5 additions and 1 deletions

View File

@ -10,4 +10,8 @@ ADDRESS="powerline-ipc-${UID:-`id -u`}"
done
env -0 | sed 's/\(\x00\)\([^\x00]\)\|^/\1--env=\2/g'
printf -- '--cwd=%s\0' "$PWD"
) | socat -t 10 - abstract-client:"$ADDRESS"
) | socat -lf/dev/null -t 10 - abstract-client:"$ADDRESS"
if test $? -ne 0 ; then
powerline-render "$@"
fi