forked from rattboi/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathzshenv-customized
29 lines (26 loc) · 1.41 KB
/
zshenv-customized
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# -*- mode: sh -*-
# export GEM_PATH="~/.gem/ruby/2.6.0:$GEM_PATH"
export PATH="$PATH:/Library/TeX/texbin/"
# Should fix the "gpg: signing failed: Inappropriate ioctl for device" per
# https://stackoverflow.com/a/57591830
export GPG_TTY=$(tty)
# Recently while tethered, the `ssh -4` value actually started causing problems
# for git operations against GitHub. So it would seem this workaround is no
# longer needed. Kept for reference. The below no longer holds.
#
# Force git to use ssh with IPv4. When tethered over my phone, everything is
# IPv6. While dig, nslookup, and ping all agree on the IP used by a source like
# github.com, this doesn't seem to be the case with ssh. Switching to IPv4 fixes
# this issue. It pains me that the fix for IPv6 related issues are generally
# "stop using IPv6", but I know of no other course to pursue here.
#
# One thread I can pull on is to attempt to use a recent version of ssh rather
# than the one bundled on macOS, which is probably tailing behind. While the ssh
# program has been a stable workhorse for as long as I can remember, it is not
# immune to bugs.
#
# export GIT_SSH_COMMAND="ssh -4"
# Nix has some weird stuff going on with curl and TLS certificates. Nix won't
# assume the system certificate trust, so we have to make it do that for us. I
# do have NIX_SSL_CERT_FILE set elsewhere but that doesn't do the trick.
export SSL_CERT_FILE="/etc/ssl/certs/ca-certificates.crt"