This commit is contained in:
jay
2022-03-30 23:11:39 +08:00
parent d05ae38147
commit 2f9f31a4e2
6 changed files with 52 additions and 12 deletions
+11 -3
View File
@@ -22,13 +22,21 @@ else
start_agent;
fi
function envf {
if [ ! -f "$1" ]; then
echo "File $1 does not exist"
exit 1
fi
export $(cat $1 | grep -v '^#' | xargs)
}
export HISTORY_SUBSTRING_SEARCH_PREFIXED=1
export FLUTTER_ROOT="$HOME/apps/flutter"
export GOPATH="$HOME/go"
export GOROOT="$HOME/apps/go"
export NODE_ROOT="$HOME/apps/node"
export PATH="$GOPATH/bin:$GOROOT/bin:$NODE_ROOT/bin:$FLUTTER_ROOT/bin:$PATH"
export PATH="$GOPATH/bin:$GOROOT/bin:$NODE_ROOT/bin:${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
if [ -f "$HOME/.cargo/env" ]; then
. "$HOME/.cargo/env"
@@ -42,4 +50,4 @@ fi
if [ -f '/Users/jay/apps/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/jay/apps/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/jay/apps/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/jay/apps/google-cloud-sdk/completion.zsh.inc'; fi
# if [ -f '/Users/jay/apps/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/jay/apps/google-cloud-sdk/completion.zsh.inc'; fi