diff options
| author | krolyxon <krolyxon@tutanota.com> | 2023-06-11 12:07:20 +0530 |
|---|---|---|
| committer | krolyxon <krolyxon@tutanota.com> | 2023-06-11 12:07:20 +0530 |
| commit | c1ebbfa7eeca191244a9ec3b985b5cf8a1175c05 (patch) | |
| tree | a8c191bfbed9ca26ad24dafd007f66187e3538e4 /.config/shell | |
| parent | 101af580e3bb80762389a2f04f0eaaf8460ba5a4 (diff) | |
newsboat: open links in private browser tab
Diffstat (limited to '.config/shell')
| -rw-r--r-- | .config/shell/aliasrc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.config/shell/aliasrc b/.config/shell/aliasrc index dc2bb60..b2f2866 100644 --- a/.config/shell/aliasrc +++ b/.config/shell/aliasrc @@ -50,5 +50,7 @@ colors() { echo } movie() { - mpv "$(find ~/movies/ -type f -regex ".*\.\(mkv\|mp4\|mpeg\|avi\|mov\|webm\)" | fzf)" + filename="$(find ~/movies/ -type f -regex ".*\.\(mkv\|mp4\|mpeg\|avi\|mov\|webm\)" -printf "%f\n" | fzf)" + filepath="$(find ~/movies/ -type f -regex ".*\.\(mkv\|mp4\|mpeg\|avi\|mov\|webm\)")" + mpv "$(grep "$filename" <<< "$filepath")" } |
