Re:Alias Your Mom, and 4 Other Tips for Productive Development
by cullenking on Tuesday September 28, 2010 @12:28PM
(#1736193)
Tab complete does not make using long arguments any easier. Here is the example the post reminded me to alias (well, script since I need to pass it arguments):
find app/views/ -name *haml -exec grep 'my_js_file.js' /dev/null '{}' \;
Lots of that can be done away with.
Re:Alias Your Mom, and 4 Other Tips for Productive Development
by Tekhne on Tuesday September 28, 2010 @02:02PM
(#1736603)
Actually, bash completion DOES help with long arguments or any arguments. It's true that you have to invest the time to write a completion script tailored for the commands you're interested in, but it can definitely be worth it (e.g. git completion).
Re:Alias Your Mom, and 4 Other Tips for Productive Development
by cullenking on Tuesday September 28, 2010 @03:09PM
(#1736846)
Cool, thanks for the tip!
Re:Alias Your Mom, and 4 Other Tips for Productive Development
by njharman on Wednesday September 29, 2010 @10:54AM
(#1739598)
> Tab complete does not make using long arguments any easier.
False. See other replies.
And as I said in first post history. I use aliases, they have their place. But, if you're not learning and using the entire Unix toolbox you are severely handicapping yourself.
Re:Alias Your Mom, and 4 Other Tips for Productive Development
by brentmc79 on Tuesday September 28, 2010 @12:29PM
(#1736202)
Exactly.
Re:Alias Your Mom, and 4 Other Tips for Productive Development
by brentmc79 on Tuesday September 28, 2010 @12:29PM
(#1736197)
Yeah, that works for some of them, but many of the aliases I use are only for the command itself, but I still have to supply args/parameters. For example, instead of "git push origin master" I use "gpo master" or even just "gpom".
Use tab/bash completion and history man! only the first couple characters need to be mostly unique.