eval_simple

Function eval_simple 

Source
pub fn eval_simple(cmd: &str) -> MaybeError<InternalError>
Expand description

Evaluates a zsh script string

ยงExamples

zsh_module::zsh::eval_simple("set -x").unwrap();
zsh_module::zsh::eval_simple("function func() { echo 'Hello from func' }").unwrap();