diff --git a/.config/fish/functions/copyp.fish b/.config/fish/functions/copyp.fish index 2594afca..87ee11fa 100644 --- a/.config/fish/functions/copyp.fish +++ b/.config/fish/functions/copyp.fish @@ -1,3 +1,8 @@ function copyp - path resolve $argv | wl-copy + argparse n -- $argv + if set -q _flag_n + path resolve $argv | wl-copy -n + else + path resolve $argv | wl-copy + end end