diff options
author | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-02-29 14:26:50 +0100 |
---|---|---|
committer | Raymaekers Luca <raymaekers.luca@gmail.com> | 2024-02-29 14:26:50 +0100 |
commit | c16799693cb6d780f258833689a6d312506093bb (patch) | |
tree | f11e3ba72e632269160275f1c3c36d170fb81a62 /bin/common | |
parent | da998b5c857aef8903bf791b4e41966cf230562c (diff) | |
parent | 8ab76a9ebf8414c720f13bd0aaaa2e6452ff753b (diff) |
Merge branch 'main' of debuc.com:dotfiles
Diffstat (limited to 'bin/common')
-rwxr-xr-x | bin/common/sshpass | 6 | ||||
-rwxr-xr-x | bin/common/ytlink | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/bin/common/sshpass b/bin/common/sshpass new file mode 100755 index 0000000..71f8e93 --- /dev/null +++ b/bin/common/sshpass @@ -0,0 +1,6 @@ +#!/bin/sh +if [ "$PASSWORD" ] +then + pass show "$PASSWORD" && exit + exit 1 +fi diff --git a/bin/common/ytlink b/bin/common/ytlink index a5e9bf0..48be9cf 100755 --- a/bin/common/ytlink +++ b/bin/common/ytlink @@ -8,6 +8,8 @@ inp="$1" [ "${inp:=$(clipo)}" ] || inp="$(cat /dev/stdin)" +# if link is http://127.0.0.1:9010/https://www.youtube.com/watch?v=7KpxsqwNF0o +inp="${inp#*/https://}" # remove util scheme inp="${inp#*//}" inp="https://youtube.com/${inp#*/}" |