From dae254e24045633a7d35f778048a5052bb5923b1 Mon Sep 17 00:00:00 2001 From: David Tomaschik Date: Fri, 13 May 2022 22:03:06 -0700 Subject: [PATCH] Updates --- dotfiles/gnupg/gpg.conf | 2 +- dotfiles/zshrc | 1 + dotfiles/zshrc.d/functions.zsh | 6 +++++- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/dotfiles/gnupg/gpg.conf b/dotfiles/gnupg/gpg.conf index e2e267d..7099505 100644 --- a/dotfiles/gnupg/gpg.conf +++ b/dotfiles/gnupg/gpg.conf @@ -1,6 +1,6 @@ use-agent # HKPS requires gnupg-curl for gpg1 -keyserver hkps://keys.openpgp.org +keyserver hkps://keyserver.ubuntu.com keyserver-options auto-key-retrieve no-honor-keyserver-url auto-key-locate keyserver personal-digest-preferences SHA256 diff --git a/dotfiles/zshrc b/dotfiles/zshrc index 1a4b40d..009e84d 100755 --- a/dotfiles/zshrc +++ b/dotfiles/zshrc @@ -66,6 +66,7 @@ zstyle ':completion::complete:*' use-cache on zstyle ':completion::complete:*' cache-path "${ZDOTDIR:-$HOME}/.zcompcache" # .profile is universal +. /etc/profile . ~/.profile # Deduplicate the path typeset -U path diff --git a/dotfiles/zshrc.d/functions.zsh b/dotfiles/zshrc.d/functions.zsh index c440738..52d33b6 100644 --- a/dotfiles/zshrc.d/functions.zsh +++ b/dotfiles/zshrc.d/functions.zsh @@ -2,7 +2,11 @@ function dumpenv { tr '\0' '\n' < /proc/${1}/environ } -if test -x "${HOME}/tools/starship/starship" ; then +if test -x "/sbin/starship" ; then + function starship_prompt { + eval $(/sbin/starship init zsh) + } +elif test -x "${HOME}/tools/starship/starship" ; then function starship_prompt { eval $($HOME/tools/starship/starship init zsh) }