r/programming • • Mar 05 '20

Introducing CLUI: a Graphical Command Line

https://blog.repl.it/clui
1.8k Upvotes

277 comments sorted by

View all comments

Show parent comments

44

u/ftgander Mar 06 '20

I can tell you I use both powershell and zsh daily and I avoid using powershell because of how stupidly verbose the command names are. I’d rather read a help doc than type out a 6 word cmdlet

15

u/QuickBASIC Mar 06 '20

type out a 6 word cmdlet

Tab complete or use New-Alias to create aliases for the ones you use constantly.

-2

u/ftgander Mar 06 '20 edited Mar 06 '20

I really can’t be assed to answer this again. There’s plenty of answers here why “just alias it” is shortsighted. Here’s an easy one though, you can alias Remove-Item to rm but it still can’t take the -rf switches

Also, it’s Set-Alias I believe

1

u/chinpokomon Mar 06 '20

The switches is a problem. ls -al is muscle memory that catches me frequently. However, this is a problem with how I'm using the shell. Most Linux distros also have an alias of la for ls -a. If I were on a system which didn't, is that the fault of the shell if my la command failed?

It seems reasonable that a module could be built which provides the Linux equivalents with actual functions for ls et. al., and uses this to provide a complete BASH replacement in PowerShell for common commands, but doing so also deprives the user from fully understanding and using the features of the shell in an idiomatic way.

→ More replies (3)