Use a Command Inside Zim Desktop Wiki with Run Command Func

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

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

Chloe Bennett
Author

Chloe Bennett

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.