Browse Source

zsh: git path

ubuntu_ci
Ein Verne 4 years ago
parent
commit
9469e79612
No known key found for this signature in database
GPG Key ID: 926634D64ACAD792
  1. 9
      .zshrc
  2. 6
      zsh/env.zsh

9
.zshrc

@ -76,7 +76,7 @@ zinit load voronkovich/gitignore.plugin.zsh
zinit load djui/alias-tips zinit load djui/alias-tips
export ASDF_DIR=$(brew --prefix asdf) export ASDF_DIR=$HOME/.asdf
# ASDF # ASDF
@ -119,6 +119,13 @@ esac
#. $(brew --prefix asdf)/etc/bash_completion.d/asdf.bash #. $(brew --prefix asdf)/etc/bash_completion.d/asdf.bash
# Compinit : After zinits, before cdreplay # Compinit : After zinits, before cdreplay
# https://carlosbecker.com/posts/speeding-up-zsh/ # https://carlosbecker.com/posts/speeding-up-zsh/
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
autoload -Uz compinit
compinit
fi
fpath=(${ASDF_DIR}/completions $fpath)
autoload -Uz compinit autoload -Uz compinit
if [ $(date +'%j') != $(stat -f '%Sm' -t '%j' ~/.zcompdump) ]; then if [ $(date +'%j') != $(stat -f '%Sm' -t '%j' ~/.zcompdump) ]; then
compinit; compinit;

6
zsh/env.zsh

@ -135,3 +135,9 @@ if [[ -d $HOME/go ]]; then
export GOPATH=$HOME/go export GOPATH=$HOME/go
export PATH="$PATH:$GOPATH/bin" export PATH="$PATH:$GOPATH/bin"
fi fi
if [[ -d $HOME/.cargo ]]; then
export PATH="$PATH:$HOME/.cargo/bin"
fi
export PATH="/usr/local/opt/gnu-sed/libexec/gnubin:$PATH"

Loading…
Cancel
Save