In doom emacs, I'm setting some aliases in my config as follows:

        "ls" "exa --icons $*"
        "doomsync" "~/.emacs.d/bin/doom sync"
        "rm" "rm -Iv $*"
        "mv" "mv -iv $*"
        "ps-sorted-by-cpu" "ps c -eo pid,user,command,%mem,%cpu --sort %cpu ; echo 'pid,user,command,%mem,%cpu'"
        "ps-sorted-by-mem" "ps c -eo pid,user,command,%mem,%cpu --sort %mem ; echo 'pid,user,command,%mem,%cpu'")

These mostly work fine, except mv. If I try to do that with my alias I get the following

~/Downloads/test λ mkdir a

~/Downloads/test λ touch b

~/Downloads/test λ ls
 a   b

~/Downloads/test λ mv b a
mv: missing destination file or directory

I noticed this thread created on a very similar issue a few years ago, however that same thread notes that this had been fixed on the master branch of emacs, so I assume this is a different issue? Anyone know what might be going on here?

1 Answer 1


I dunno exactly why it's not working, but when I do...

alias mv 'mv -iv $1 $2'

...it works

Something must be up with how all the args are parsed. I'd file a bug report.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.