tutorial vids script robustness

This commit is contained in:
Luke Smith
2018-08-03 16:51:22 -04:00
parent 6c8a9f76ac
commit be86d72beb
2 changed files with 4 additions and 3 deletions

View File

@@ -1,3 +1,3 @@
#!/bin/sh
mpv $(grep -P "^$(cat ~/.larbs/tutorialvids | grep https | awk '{print $1}' | dmenu -i -p "Learn about what? (ESC to cancel)" -l 5)\t" ~/.larbs/tutorialvids | awk '{print $2}')
mpv $(grep -P "^$(grep https: ~/.larbs/tutorialvids | sed 's/\t.*//g' | dmenu -i -p "Learn about what? (ESC to cancel)" -l 5)\t" ~/.larbs/tutorialvids | sed 's/.*\t//')