unify take and mkdircd function
adding zc function to calculate simple math
only set TERM and EDITOR env vars as fallback