dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit ecb54e73e047b03464e93914b7d30923b9ff8eb7
parent 7ace1b381155021a5034ebb223b2a1d1f5d380be
Author: Chris Bracken <chris@bracken.jp>
Date:   Fri,  5 Oct 2018 16:16:58 -0700

Separate assignment from decl to avoid stomping $?

export/local return true which can mask the exit status of subshell
invocations.

Diffstat:
M.zshrc | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.zshrc b/.zshrc @@ -4,7 +4,10 @@ export EDITOR=/usr/bin/vim export GNUPGHOME="$HOME/.gnupg" export GOMA_DIR="$HOME/src/goma" -export GPG_TTY="$(tty)" + +# Set tty used for GPG pinentry +GPG_TTY="$(tty)" +export GPG_TTY # P4 config export P4CONFIG=.p4config @@ -33,7 +36,8 @@ zstyle ':completion:*' menu select # Current git branch (for prompt) git_branch() { - local branch="$(git rev-parse --abbrev-ref HEAD 2> /dev/null)" + local branch + branch="$(git rev-parse --abbrev-ref HEAD 2> /dev/null)" if [[ -n $branch ]]; then echo -n " ($branch)" fi