From 4156925d6eba339e85dff6a54e98f582d2cc0b90 Mon Sep 17 00:00:00 2001 From: Sami Samhuri Date: Wed, 26 Feb 2020 14:25:39 -0800 Subject: [PATCH] Update zshrc --- zshrc | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index 6561911..0ee16ca 100755 --- a/zshrc +++ b/zshrc @@ -83,6 +83,10 @@ if [[ -d ~/Library/Mobile\ Documents/com\~apple\~CloudDocs ]]; then export icloud=~/Library/Mobile\ Documents/com\~apple\~CloudDocs fi +if [[ -d /usr/local/opt/libxml2/lib/pkgconfig ]]; then + export PKG_CONFIG_PATH="/usr/local/opt/libxml2/lib/pkgconfig" +fi + # 4. Shell Options # ================ @@ -240,7 +244,10 @@ if command_exists git; then alias ds='git diff --stat' alias ecf='git edit-conflicted-files mate' alias f='git fetch' - alias gh='git open-in-github' + # Don't clobber the new GitHub CLI + if ! command_exists gh; then + alias gh='git open-in-github' + fi alias glo='git log --oneline --decorate' alias gls='git log --stat' alias gup='git update' @@ -333,8 +340,11 @@ if is_interactive && command_exists screen && not_in_screen && is_screen_running screen -rx fi + +# 16. misc +# ======== + if [[ -e ~/.opam ]]; then # OPAM configuration . ~/.opam/opam-init/init.zsh > /dev/null fi -