summaryrefslogtreecommitdiff
path: root/src/platform/darwin.sh (follow)
Commit message (Collapse)AuthorAgeFilesLines
* platform/darwin: don't invoke brew for the default prefixFilippo Valsorda2020-04-191-1/+1
| | | | | | | | "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.
* platform/darwin: drop using "display" to show QR codesFilippo Valsorda2020-04-191-4/+0
| | | | | | | | 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.
* show: do not store binary data in bash varsJason A. Donenfeld2018-08-011-4/+5
| | | | Instead we're forced to base64 it, like we do with the clipboard.
* Close stdout for background task that restores clipboardAllan Odgaard2018-06-141-1/+1
| | | | | | | 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.
* show,generate: support qrcodesJason A. Donenfeld2017-01-011-0/+12
|
* darwin: Fix up order of operations.Jason A. Donenfeld2014-12-231-1/+1
|
* platform: find getopt in alternate osx locationsJamie Couture2014-09-211-1/+1
| | | | | | | | | | | | 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>
* clip: use CLIP_TIME in messagesJason A. Donenfeld2014-07-241-1/+1
|
* darwin: allow for gnu mktemp in pathJason A. Donenfeld2014-06-301-1/+1
|
* darwin: fix mktemp argument orderJason A. Donenfeld2014-06-291-1/+1
|
* darwin: properly ejects ramdisksJason A. Donenfeld2014-06-291-10/+10
| | | | | | | 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.
* Turns out aliases were a bad idea.Jason A. Donenfeld2014-04-241-2/+2
|
* Use aliases instead of variables for command portability.Jason A. Donenfeld2014-04-231-2/+2
|
* All globals are upper-case.Jason A. Donenfeld2014-04-151-6/+6
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Reorganize entire programJason A. Donenfeld2014-04-151-4/+4
| | | | Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
* Fix path to /dev/nullPeter Haza2014-04-051-1/+1
|
* clip: wait longer for slow systemsJason A. Donenfeld2014-03-231-1/+1
|
* clip: suppress kill errorJason A. Donenfeld2014-03-221-2/+2
|
* clip: do not race on osxJason A. Donenfeld2014-03-221-5/+5
|
* Shred shm files.Jason A. Donenfeld2014-03-181-0/+1
|
* Explicitly use gpg2 rather than relying on symlink.Jason A. Donenfeld2012-09-301-1/+0
|
* Normalize copyright headers.Jason A. Donenfeld2012-09-221-0/+3
|
* Quote the template.Jason A. Donenfeld2012-09-181-1/+1
|
* Abstract potentially platform specific commands into their own commands.Jason A. Donenfeld2012-09-171-0/+32