fix(client): disable ssh-askpass on wsl
the curses askpass is cool but it just. doesn't work well, especially when there are multiple tabs open in windows terminal which completely breaks it beyond belief. so yeah, bye bye
This commit is contained in:
parent
0bb7ad9e38
commit
be8b283139
4 changed files with 10 additions and 23 deletions
|
@ -1,15 +0,0 @@
|
|||
{
|
||||
lib,
|
||||
pinentry-curses,
|
||||
writeShellScript,
|
||||
}:
|
||||
writeShellScript "curses-ssh-askpass" ''
|
||||
if [ -z ''${1+x} ]; then
|
||||
prompt="GETPIN"
|
||||
else
|
||||
prompt="SETDESC $1\nGETPIN"
|
||||
fi
|
||||
|
||||
pin=$(echo -e "$prompt" | ${lib.getExe pinentry-curses} -T /dev/pts/0 | grep D | tr -d '\n')
|
||||
echo "''${pin:2}"
|
||||
''
|
|
@ -1,6 +1,5 @@
|
|||
inputs: final: prev: {
|
||||
idea-ultimate-fixed = prev.callPackage ./idea-fixed.nix { };
|
||||
curses-ssh-askpass = prev.callPackage ./curses-ssh-askpass.nix { };
|
||||
|
||||
vencord = prev.vencord.overrideAttrs (old: rec {
|
||||
version = "${old.version}+git.${inputs.vencord.shortRev}";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue