dotfiles

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

commit b10013f9a0c64df12de19c128abe68f7b59617b8
parent f797547f88296faffb4a5e5381defd37d850c7ac
Author: Chris Bracken <chris@bracken.jp>
Date:   Tue, 15 Feb 2022 11:12:52 -0800

Define SRC_ROOT

We use this during shell setup, but we don't export it.

Diffstat:
M.paths | 5+----
M.zshenv | 9+++++++++
2 files changed, 10 insertions(+), 4 deletions(-)

diff --git a/.paths b/.paths @@ -30,12 +30,9 @@ path_append() { # Push /usr/local/bin to the front of PATH path_prepend "/usr/local/bin" -# Platform-specific source directory -[[ -d "$HOME/src" ]] && SRC_ROOT="$HOME/src" -[[ -d "$HOME/Developer" ]] && SRC_ROOT="$HOME/Developer" - # Fuchsia/Flutter path_prepend "$SRC_ROOT/depot_tools" +path_prepend "$SRC_ROOT/goma" path_prepend "$SRC_ROOT/flutter/flutter/bin" path_prepend "$SRC_ROOT/flutter/flutter/bin/cache/dart-sdk/bin" path_prepend "$SRC_ROOT/fuchsia/.jiri_root/bin" diff --git a/.zshenv b/.zshenv @@ -29,6 +29,15 @@ export P4CONFIG=.p4config export P4EDITOR=vim export GEM_HOME="$HOME/.gem" +# Platform-specific source directory. +[[ -d "$HOME/src" ]] && SRC_ROOT="$HOME/src" +[[ -d "$HOME/Developer" ]] && SRC_ROOT="$HOME/Developer" + +# Flutter/Fuchsia stuff. +export GOMA_DIR="$SRC_ROOT/goma" +export GOMA_LOCAL_OUTPUT_CACHE_DIR="$GOMA_DIR/.goma_cache" +[[ "$(uname)" == "Darwin" ]] && export FLUTTER_GOMA_CREATE_XCODE_SYMLINKS=1 + # If a local python3 directory exists, add PYTHONPATH. if [[ -d "$HOME/.local/lib/python3" ]]; then export PYTHONPATH="$HOME/.local/lib/python3:$PYTHONPATH"