Use a command inside Zim Desktop Wiki with run command func

There is a function inside Zim Desktop Wiki program for run a commandline command but I'm getting error.

For paste a date, it works. (My command is: date "+Date: %d %b %Y - %H:%M:%S" )

But when I want to run an alias (For example: zim_up alias for this command: cd ~/Google && grive) it doesn't work.. I'm getting error as "No such file or directory".. (I just want to update my notes with this alias and it's important for me.)

Can anyone help please?

1 Answer

It probably uses /bin/sh to launch the command, not your shell. If you need to use an alias, try

bash -lic zim_up

I'm assuming your shell is bash.

  • -l use a login shell so your .bash_profile is sourced
  • -i force the shell to be interactive so aliases are activated
  • -c zim_up run your alias
7

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like