pascal-zarrad/psh

GPG on WSL not working

Closed this issue · 0 comments

Describe the bug
Due to an unescaped $(tty) in the plugin, the value written to the zshrc is the path of tty (for example: /dev/tty1 instead of $(tty).

To Reproduce
Steps to reproduce the behavior:

  1. Run psh on WSL
  2. Restart WSL / Install same zshrc on different machine
  3. Take a look at the zshrc. It should show the behaviour described in the description.

Expected behavior
The line written in the .zshrc by the wsl-gpg plugin equals export GPG_TTY=$(tty).