Added script to vied md files in Zathura.

It uses pandoc to converd .md files to pdf, and pipes the output to
Zathura.
This commit is contained in:
Sheldon Lee 2021-09-17 11:31:34 +08:00
parent 1add6c3d32
commit ffc32accc2

View File

@ -73,3 +73,11 @@ function unrealbuild {
${UNR_PATH}/Engine/Build/BatchFiles/Linux/RunMono.sh ${UNR_PATH}/Engine/Binaries/DotNET/UnrealBuildTool.exe $PROJ_NAME -ModuleWithSuffix $PROJ_NAME Linux Development -editorrecompile -canskiplink "${CURR_DIR}/${PROJ_NAME}.uproject" -progress
}
# view markdown files in zathura
viewmd()
{
[ -z $1 ] && return
[ ! -f $1 ] && return
pandoc -t pdf $1 | zathura - 2>&1 /dev/null & disown
}