diff --git a/common/pkgs.nix b/common/pkgs.nix index 6fe5d3f..8d30c06 100644 --- a/common/pkgs.nix +++ b/common/pkgs.nix @@ -80,21 +80,21 @@ in (pkgs.writeShellScriptBin "paste" '' command -v xsel > /dev/null if [[ $? -eq 0 ]]; then - xsel -ob && return + xsel -ob && exit 0 fi command -v wslclip > /dev/null if [[ $? -eq 0 ]]; then - wslclip -g && return + wslclip -g && exit 0 fi '') (pkgs.writeShellScriptBin "copy" '' command -v xsel > /dev/null - if [[ $? -ne 0 ]]; then - xsel -ib $@ && return + if [[ $? -eq 0 ]]; then + xsel -ib $@ && exit 0 fi command -v wslclip > /dev/null - if [[ $? -ne 0 ]]; then - wslclip $@ && return + if [[ $? -eq 0 ]]; then + wslclip $@ && exit 0 fi '')