howto import shell environment into elektra: export gives you the whole list of exports you have now they are in (zsh) in KEY=VALUE form so do export > file vi file now you have to search and replace: :%s/^/"/g :%s:^:set "user/zsh/env: :%s/=/" "/g :%s/$/"/g should end up to lines like: kdb set "user/env/CC" "gcc" this can now simple be executed