3 ms·
I almost regret this one because of how often I use it on systems that I haven't set up yet: alias +x='chmod +x'
by woodruffw 3y ago
I almost regret this one because of how often I use it on systems that I haven't set up yet:
alias +x='chmod +x'
- alhirzel 3y agoGreat idea!
- frfl 3y agoIf you make it a file and put it in your $PATH, you can also invoke it from within vim for example. I find myself using `!chmod +x` often from inside vim, so this will be quite nice, `!+x` Edit: Sadly it doesn't work, trying to run `!+x %` in vim makes bash (my shell) treat `+x` like an option I believe.
- aodonnell2536 3y agoI don’t believe the `![command]` syntax in vim command mode has access to the user’s aliases
- frfl 3y agoYou're right about aliases. But an executable in your $PATH does work.