m-chrzan.xyz
aboutsummaryrefslogtreecommitdiff
path: root/src/platform/darwin.sh
AgeCommit message (Collapse)Author
2020-04-19platform/darwin: don't invoke brew for the default prefixFilippo Valsorda
"brew --prefix gnu-getopt" takes 2.125s on my very default setup (I don't even want to know why), dominating the pass wall time. If the default brew prefix is in use, just detect the getopt binary with a cheap "test -x" instead.
2020-04-19platform/darwin: drop using "display" to show QR codesFilippo Valsorda
This doesn't detect if XQuartz is installed and running, so it's broken in most setups, the experience is poor regardless, since it's not displayed inline in the terminal, but leaves a window that requires closing, and anyway the the utf8 mode works perfectly on both iTerm2 and Terminal.app.
2018-08-01show: do not store binary data in bash varsJason A. Donenfeld
Instead we're forced to base64 it, like we do with the clipboard.
2018-06-14Close stdout for background task that restores clipboardAllan Odgaard
While we do not expect any output on stdout from the background task, keeping the file handle open means that anyone calling `pass` and waiting for stdout to be closed, will have to wait (by default) for 45 seconds.
2017-01-01show,generate: support qrcodesJason A. Donenfeld
2014-12-23darwin: Fix up order of operations.Jason A. Donenfeld
2014-09-21platform: find getopt in alternate osx locationsJamie Couture
Some users may use MacPorts instead of Homebrew. If brew fails to return a prefix for getopt, check if the user has 'port' installed and use the MacPort ${prefix} /opt/local. Avoids an issue where pass terminates because getopt cannot be resolved in the assumed location /usr/local/bin. Provide support to resolve absolute path of getopt from a MacPorts installation. Signed-off-by: Jamie Couture <jamie.couture@gmail.com>
2014-07-24clip: use CLIP_TIME in messagesJason A. Donenfeld
2014-06-30darwin: allow for gnu mktemp in pathJason A. Donenfeld
2014-06-29darwin: fix mktemp argument orderJason A. Donenfeld
2014-06-29darwin: properly ejects ramdisksJason A. Donenfeld
In the move away from extensive global variables and improved cleanup routines, we forgot to fix the darwin platform file, which means temporary ramdisks never got unmounted. This patch cleans up the general cleanup trap logic routines.
2014-04-24Turns out aliases were a bad idea.Jason A. Donenfeld
2014-04-23Use aliases instead of variables for command portability.Jason A. Donenfeld
2014-04-15All globals are upper-case.Jason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2014-04-15Reorganize entire programJason A. Donenfeld
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2014-04-05Fix path to /dev/nullPeter Haza
2014-03-23clip: wait longer for slow systemsJason A. Donenfeld
2014-03-22clip: suppress kill errorJason A. Donenfeld
2014-03-22clip: do not race on osxJason A. Donenfeld
2014-03-18Shred shm files.Jason A. Donenfeld
2012-09-30Explicitly use gpg2 rather than relying on symlink.Jason A. Donenfeld
2012-09-22Normalize copyright headers.Jason A. Donenfeld
2012-09-18Quote the template.Jason A. Donenfeld
2012-09-17Abstract potentially platform specific commands into their own commands.Jason A. Donenfeld