mirror of
https://github.com/acedanger/shell.git
synced 2025-12-05 22:50:18 -08:00
feat: Implement SKIP_OLLAMA feature for optional setup without Ollama installation and add documentation
refactor: Enhance .profile for Go path management and environment variable setup
This commit is contained in:
@@ -49,8 +49,12 @@ if [ -d "$HOME/go/bin" ] ; then
|
||||
fi
|
||||
|
||||
# Add Go version-specific paths if they exist
|
||||
shopt -s nullglob 2>/dev/null || setopt nullglob 2>/dev/null || true
|
||||
for go_path in /usr/lib/go-*/bin /usr/lib/go/bin; do
|
||||
if [ -d "$go_path" ] ; then
|
||||
PATH="$go_path:$PATH"
|
||||
fi
|
||||
done
|
||||
shopt -u nullglob 2>/dev/null || unsetopt nullglob 2>/dev/null || true
|
||||
|
||||
export GOROOT=/usr/local/go
|
||||
|
||||
Reference in New Issue
Block a user