diff --git a/.config/fish/functions/copyl.fish b/.config/fish/functions/copyl.fish index 74c807f9..654c2440 100644 --- a/.config/fish/functions/copyl.fish +++ b/.config/fish/functions/copyl.fish @@ -1,3 +1,3 @@ -function copyl --description "Copy URI path" - echo "file://$PWD/$argv" | wl-copy -t text/uri-list +function copyl --description "Copy URI path" -a path + echo "file://$(path resolve $path)" | wl-copy -t text/uri-list end