summaryrefslogtreecommitdiff
path: root/copy_start_nevermind.sh
diff options
context:
space:
mode:
authorepoch <epoch@thebackupbox.net>2020-04-20 03:33:21 -0500
committerepoch <epoch@thebackupbox.net>2020-04-20 03:33:21 -0500
commit8ec0b3da94b3bbc18140bdea22488d51676d2634 (patch)
tree1aeb045d712767b117bea412e65348897eefa0e5 /copy_start_nevermind.sh
parent3e23d5631b7664de5a78aaaac211bff357152c00 (diff)
downloaduritools-8ec0b3da94b3bbc18140bdea22488d51676d2634.tar.gz
uritools-8ec0b3da94b3bbc18140bdea22488d51676d2634.zip
more of the breaking-change. code to get the line moved to external program so it can be rewritten easier. copy_start_nevermind.sh uses it now. cleaned up Makefile styling.
Diffstat (limited to 'copy_start_nevermind.sh')
-rwxr-xr-xcopy_start_nevermind.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/copy_start_nevermind.sh b/copy_start_nevermind.sh
index ec8f102..cae5668 100755
--- a/copy_start_nevermind.sh
+++ b/copy_start_nevermind.sh
@@ -1,7 +1,7 @@
#!/bin/bash
scheme="$(uricut -s <<< "$1")"
selection="$(printf "%s\ncopy\nstart\nnevermind\n" "$(printf "%s\n" "$1" | uricut | grep -v '^whole')" \
- | choose "$(printf "uri: '%s'\nwill be ran with: %s\n" "$1" "$(grep "^${scheme}:" ~/.config/uristart.conf | tr -s '\t' | cut -f2- )" )")"
+ | choose "$(printf "uri: '%s'\nwill be ran with: %s\n" "$1" "$(urigetline "$1")" )")"
echo "$selection"
if [ "$selection" = "copy" ];then
printf "%s" "$1" | xclip -i