emacs - How to write eshell script? -


there. i'm new eshell,and come problem how can script it. i've tried (rm ~/somefile) , worked.so every command this?how should write conditional code , loop?and should customize make system execute script using eshell other others ,like bash,by default? i'm not @ english,and hope can understand mean.i'll appreciate correction english expression?

you can call elisp command/function/operator eshell; suppose means can script using elisp (see gnu emacs lisp reference manual). example:

 welcome emacs shell  ~ $ (defun foo (n) (if (= 0 (mod n 2)) "even." "odd!")) foo ~ $ foo 2 even. ~ $ foo 3 odd! ~ $  

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -