commit
2bc1304de0
@ -408,7 +408,11 @@ __shorten_path()
|
|||||||
echo "$p"
|
echo "$p"
|
||||||
fi
|
fi
|
||||||
elif [[ "$WORKING_SHELL" == "zsh" ]]; then
|
elif [[ "$WORKING_SHELL" == "zsh" ]]; then
|
||||||
echo "%-${keep}~%${max_len}<${mask}<%~%<<"
|
if [[ "$len" -gt "$max_len" ]]; then
|
||||||
|
echo "%-${keep}~%${max_len}<${mask}<%~%<<"
|
||||||
|
else
|
||||||
|
echo "%~"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -417,7 +421,7 @@ __shorten_path()
|
|||||||
# colored in red if it have not.
|
# colored in red if it have not.
|
||||||
__permissions_color()
|
__permissions_color()
|
||||||
{
|
{
|
||||||
if [[ -w "${PWD}" ]]; then
|
if [[ -w "${PWD}" ]]; then
|
||||||
echo "${GREEN}:${NO_COL}"
|
echo "${GREEN}:${NO_COL}"
|
||||||
else
|
else
|
||||||
echo "${RED}:${NO_COL}"
|
echo "${RED}:${NO_COL}"
|
||||||
@ -659,6 +663,7 @@ __battery_color()
|
|||||||
elif [[ "$WORKING_SHELL" == "zsh" ]]; then
|
elif [[ "$WORKING_SHELL" == "zsh" ]]; then
|
||||||
echo -ne "${ret}${bat}%%${NO_COL}"
|
echo -ne "${ret}${bat}%%${NO_COL}"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user