Config updates

This commit is contained in:
Michael Housh
2023-10-03 21:38:41 -04:00
parent 5927ef7fb3
commit 7690713f46
5 changed files with 25 additions and 5 deletions

View File

@@ -4,9 +4,23 @@
declare -a findPaths=("$HOME")
function fpath_prepend() {
declare arg
for arg in "$@"; do
test -d $arg || continue
findPaths=("$arg" "$findPaths")
done
}
if [[ $# -eq 1 ]]; then
selected=$1
else
fpath_prepend "$REPOS" \
"$LOCAL_REPOS" \
"$GHREPOS" \
"$GHREPOS"
# Some of my machines, projects is a symlink to $REPOS, so ignore it.
# On other machines, it is local versions of projects, so add it.
if [[ ! -L "$HOME/projects" ]]; then