setup script and url handler
This commit is contained in:
parent
4dcc21854e
commit
53fd8e2857
|
@ -0,0 +1,7 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
ln -s ./termux-url-opener $HOME/bin/termux-url-opener
|
||||
|
||||
|
||||
ln -S ./das_erste.py $HOME/.scripts/das_erste.py
|
||||
ln -S ./youtube.py $HOME/.scripts/youtube.py
|
|
@ -0,0 +1,13 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
url=$1
|
||||
|
||||
echo $url
|
||||
if [[ "$url" =~ "youtube" ]]; then
|
||||
video_id=$(echo $url | sed 's#https://www.youtube.com/watch?v=##g')
|
||||
echo $video_id
|
||||
youtube.py $video_id
|
||||
exit 0
|
||||
|
||||
fi
|
||||
echo "not passed"
|
|
@ -0,0 +1 @@
|
|||
#!/usr/bin/env bash
|
Loading…
Reference in New Issue