The build of Alpine available in the AUR does not support saving your password to disk. While reasonable from a security perspective, it gets pretty annoying. In my case, I use Gmail with 2FA and I have to enter the app password every time I want to check my email.
You can avoid this by creating a passfile for Alpine to use – in order to make
the AUR Alpine use one, you must build it with the flag
--with-passfile=FILENAME, where you can use any filename.
- Clone the AUR git repository,
cdinto the directory. - Edit the
PKGBUILD. In thebuild()function, replace the flag--without-passfilewith--with-passfile=FILENAME. - Run
makepkg -siin the directory to build and install Alpine.
The next time you open Alpine and enter your password, you will be prompted whether to save it on disk. Choose yes, enter a master password, and voilà. :)
References: