i'm trying copy using command provided in here. is,
alias | sed -e "s/^alias ([^=]+)='(.*)'$/alias \1 \2 \$*/g; s/'\\\''/'/g;" >~/.emacs.d/eshell/alias
this worked bash
, using emacs-starter-kit; not working zsh
-- not working means copied things no effect.
any appreciated. thanks.
[as side note]
it seems like, don't have few eshell
default variables i.e. eshell-read-aliases-list
, , eshell-aliases-file
. so, don't know should eshell
alias file reside.
got working after setting
(setq eshell-directory-name (expand-file-name "./" (expand-file-name "eshell" prelude-personal-dir)))
in post.el
(my personal .el
file post-processing) under prelude/personal
... , modified given bash
command to
alias | awk '{print "alias "$0}' | sed -e "s/^alias ([^=]+)='(.*)'$/alias \1 \2 \$*/g; s/'\\\''/'/g;" > ~/.emacs.d/personal/eshell/alias
... , appended .zshrc
.
found alias
command, in zsh
, prints aliases without prefix alias<space>
, unlike bash
. therefore part
| awk '{print "alias "$0}'
Comments
Post a Comment