General statistics
List of Youtube channels
Youtube commenter search
Distinguished comments
About
Lawrence D’Oliveiro
Mental Outlaw
comments
Comments by "Lawrence D’Oliveiro" (@lawrencedoliveiro9104) on "Save Time on the Command Line With Aliases" video.
Have you looked at shell functions? They are even more powerful than aliases, because they can take arguments. They’re like mini-shell-scripts, except they don’t live in separate files or run in separate shell instances.
3
Shell functions are more powerful than aliases.
2
@oalfodr I would add the “-z” option to the git command. Just in case.
2
@oalfodr I have this thing about ensuring that my scripts can deal with arbitrary file names. Remember that spaces and newlines can occur in filenames.
2
2:04 Your .bashrc has an unnecessary “#!/bin/bash” at the top. That could be useful in other shell scripts, but not in this one.
2
The only sudo command I use is “sudo /bin/bash”. Or, for extra coolness (saving an extra CTRL-D to exit), how about “exec sudo /bin/bash”.
1
0:44 I don’t allow food and drink near my computers. So that avoids that problem.
1