1
Fork 0

Fixed bash syntax in vimclip script

This commit is contained in:
Matei Adriel 2023-06-04 08:17:14 +02:00
parent 2246ae3eaa
commit 73a822057d
No known key found for this signature in database

View file

@ -19,9 +19,9 @@ let vimclip = pkgs.stdenv.mkDerivation rec {
pkgs.writeShellScriptBin "vimclip" '' pkgs.writeShellScriptBin "vimclip" ''
if ["wayland" = $XDG_SESSION_TYPE] if ["wayland" = $XDG_SESSION_TYPE]
then then
export VIMCLIP_CLIPBOARD_COMMAND = ${pkgs.wl-clipboard}/bin/wl-copy export VIMCLIP_CLIPBOARD_COMMAND=${pkgs.wl-clipboard}/bin/wl-copy
else else
export VIMCLIP_CLIPBOARD_COMMAND = ${lib.getExe pkgs.xsel} export VIMCLIP_CLIPBOARD_COMMAND=${lib.getExe pkgs.xsel}
fi fi
${lib.getExe vimclip} ${lib.getExe vimclip}