Assuming:
alias yt='/home/user/bin/yt-dlp'
and I want have more aliases incorporating this alias:
alias yt-native='yt --hls-prefer-native"
alias alias yt-auth='yt -u user@email.com -p password"
so that I don't have to repeat the location of yt-dlp.
Is that possible?
Hi,
Assuming:
alias yt='/home/user/bin/yt-dlp'
and I want have more aliases incorporating this alias:
alias yt-native='yt --hls-prefer-native"
alias alias yt-auth='yt -u user@email.com -p password"
so that I don't have to repeat the location of yt-dlp.
Is that possible?
Hi,
Assuming:
alias yt='/home/user/bin/yt-dlp'
and I want have more aliases incorporating this alias:
alias yt-native='yt --hls-prefer-native"
alias alias yt-auth='yt -u user@email.com -p password"
In comp.unix.shell, Ottavio Caruso <ottavio2006-usenet2012@yahoo.com> wrote:
Hi,
Assuming:
alias yt='/home/user/bin/yt-dlp'
and I want have more aliases incorporating this alias:
alias yt-native='yt --hls-prefer-native"
alias alias yt-auth='yt -u user@email.com -p password"
[...]
But seriously, write a wrapper script.
In comp.unix.shell, Ottavio Caruso <ottavio2006-usenet2012@yahoo.com> wrote:
Hi,
Assuming:
alias yt='/home/user/bin/yt-dlp'
and I want have more aliases incorporating this alias:
alias yt-native='yt --hls-prefer-native"
alias alias yt-auth='yt -u user@email.com -p password"
Yes. I'd say that method sucks, however. Personally I use a wrapper
script for yt-dlp that sets my preferred options and gives me handy
command line shortcuts.
But you can do some fun stuff with aliases.
When an alias definition ends with a space, the following term can also
be an alias.
But seriously, write a wrapper script.
Ah, thanks. That's the one I was looking for. It's buried somewhere in
the man page (hints are welcome) but I can't find it. However...
On Sat, 30 Apr 2022 05:45:40 -0400, Ottavio Caruso <ottavio2006-usenet2012@yahoo.com> wrote:
Ah, thanks. That's the one I was looking for. It's buried somewhere in
the man page (hints are welcome) but I can't find it. However...
In GNU bash, version 5.1.4(1)-release the text in "man bash", the first paragraph
in the ALIASES section ends with ...
If the last character of the alias value is a blank, then the next command
word following the alias is also checked for alias expansion.
Regards, Dave Hodgins
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 498 |
Nodes: | 16 (2 / 14) |
Uptime: | 56:45:43 |
Calls: | 9,812 |
Calls today: | 14 |
Files: | 13,754 |
Messages: | 6,190,889 |