add list of voids held open by current shells to the prompt

This commit is contained in:
Martinez 2017-09-30 20:21:46 +02:00
parent 6e65590d03
commit 6931f58a73
2 changed files with 25 additions and 3 deletions

View file

@ -130,7 +130,7 @@ function mkvoid () {
mkdir -p "${__MKVOID_DIR}" || die "mkdir fs"
ln -s "${__MKVOID_ID}" "${__MKVOID_PATH}" || die "ln"
pushd "${__MKVOID_PATH}" > /dev/null || die "pushd"
zsh
OVER_PROMPT_VOIDS="$OVER_PROMPT_VOIDS:$__MKVOID_NAME" zsh
popd > /dev/null
rm -f "${__MKVOID_PATH}" || die "rm link"
rm -rf "${__MKVOID_ID}" || die "rm void"