Update 2024-01-18 08:06 OpenBSD/amd64-x13
This commit is contained in:
parent
ca61530b02
commit
1195424d1b
@ -26,7 +26,7 @@ add "set -A complete_rcctl_1 -- " "$ARGS"
|
||||
add "set -A complete_rcctl_2 -- " "$(rcctl ls all)"
|
||||
add "set -A complete_got_1 -- " "$(got -h 2>&1 | sed -n s/commands://p)"
|
||||
add "set -A complete_xdl_1 -- " "$(cd ~/x && ls -d *)"
|
||||
add "set -A complete_ydl_1 -- " "$(cd ~/Videos/YouTube && ls -d *)"
|
||||
add "set -A complete_ytdl_1 -- " "$(cd ~/Videos/YouTube && ls -d *)"
|
||||
|
||||
|
||||
add "set -A complete_cg -- " "bitreich cufflink efnet hackint ircnet liberachat oftc robustirc uugrn"
|
||||
|
@ -32,6 +32,7 @@ ytdl_audio() {
|
||||
-o "%(title)s-%(id)s.%(ext)s" \
|
||||
"$@";
|
||||
}
|
||||
|
||||
xdl() {
|
||||
if [ ! -z $2 ]
|
||||
then
|
||||
@ -47,7 +48,8 @@ ytdl() {
|
||||
if [ ! -z $2 ]
|
||||
then
|
||||
mkdir -p "$HOME/Videos/YouTube/$1/"
|
||||
cd "$HOME/Videos/YouTube/$1/" && yt-dlp "$2"
|
||||
cd "$HOME/Videos/YouTube/$1/" \
|
||||
&& yt-dlp -o '%(upload_date)s - %(title)s.%(ext)s' "$2"
|
||||
ksh-update-completions
|
||||
else
|
||||
echo "First argument should be a category."
|
||||
|
Loading…
Reference in New Issue
Block a user