default to vi if no editor set
This commit is contained in:
parent
7f8fbbf55b
commit
9d629b9bce
2
nnote
2
nnote
|
|
@ -44,7 +44,7 @@ else
|
||||||
fi
|
fi
|
||||||
pushd "$NOTESDIR" > /dev/null
|
pushd "$NOTESDIR" > /dev/null
|
||||||
printf "\033]2;$NOTENAME $NOTETYPE note\a"
|
printf "\033]2;$NOTENAME $NOTETYPE note\a"
|
||||||
$EDITOR "$NOTEPATH" || true # || true so we always clear header and popd
|
%{EDITOR:-vi} "$NOTEPATH" || true # || true so we always clear header and popd
|
||||||
printf "\033]2;\a"
|
printf "\033]2;\a"
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue