Skip to main content
7 events
when toggle format what by license comment
Oct 26, 2019 at 21:20 comment added Gilles 'SO- stop being evil' @Adam In zsh, you don't need double quotes around $foo if the resulting word is not empty. compdefas mkdir mcd is equivalent to compdef _mkdir mcd with the advantage of working with commands that don't obey the completion function naming convention of pretending an underscore.
Oct 26, 2019 at 19:56 comment added Adam Katz Should this have double-quotes around things, and if so, where?
Jan 28, 2019 at 2:03 comment added raring-coffee20 Thanks, that's truly mkdir wrapper, but should we still need to have compdefas? As I test your mkcd function, it works well with completion.
Jan 27, 2019 at 19:43 vote accept bdesham
Jan 27, 2019 at 18:54 comment added Gilles 'SO- stop being evil' @TuyenPham See if my function inspires you.
Jan 27, 2019 at 6:31 comment added raring-coffee20 If I issue command mcd without any argument, then it echos mkdir: cannot create directory ‘’: No such file or directory. mkdir will give mkdir: missing operand which look nicer than our mcd, how to have the same behavior as mkdir?
Jan 25, 2019 at 21:57 history answered Gilles 'SO- stop being evil' CC BY-SA 4.0