Skip to content

Commit

Permalink
⚙️ 🚜 Updates recipes
Browse files Browse the repository at this point in the history
  • Loading branch information
jefftriplett committed Oct 15, 2024
1 parent 8c8f965 commit 2109532
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 17 deletions.
7 changes: 5 additions & 2 deletions home/.justfiles/llm.justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
# llm recipes - https://virtualenv.pypa.io/en/latest/
# ----------------------------------------------------------------

set dotenv-load := false
set export := true

justfile := justfile_directory() + "/.justfiles/llm.justfile"

[private]
@default:
just --list --justfile {{ justfile }}
just --justfile {{ justfile }} --list

[private]
@fmt:
just --fmt --justfile {{ justfile }}
just --justfile {{ justfile }} --fmt

@install:
llm install llm-claude
Expand Down
7 changes: 5 additions & 2 deletions home/.justfiles/macos.justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
# macOS recipes
# ----------------------------------------------------------------

set dotenv-load := false
set export := true

justfile := justfile_directory() + "/.justfiles/macos.justfile"

[private]
@default:
just --list --justfile {{ justfile }}
just --justfile {{ justfile }} --list

[private]
@fmt:
just --fmt --justfile {{ justfile }}
just --justfile {{ justfile }} --fmt

# ----------------------------------------------------------------
# Time Machine recipes
Expand Down
9 changes: 6 additions & 3 deletions home/.justfiles/ollama.justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@
# Ollama recipes
# ----------------------------------------------------------------

justfile := justfile_directory() + "/.justfiles/ollama.justfile"
set dotenv-load := false
set export := true

export OLLAMA_HOST := "0.0.0.0:11434"
export OLLAMA_KEEP_ALIVE := "30m"
export OLLAMA_ORIGINS := "http://*"
justfile := justfile_directory() + "/.justfiles/ollama.justfile"

[private]
@default:
just --list --justfile {{ justfile }}
just --justfile {{ justfile }} --list

[private]
@fmt:
just --fmt --justfile {{ justfile }}
just --justfile {{ justfile }} --fmt

@copy-plist:
cp ~/.plists/homebrew.mxcl.ollama.plist /opt/homebrew/opt/ollama/homebrew.mxcl.ollama.plist
Expand Down
7 changes: 5 additions & 2 deletions home/.justfiles/virtualenv.justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
# virtualenv recipes - https://virtualenv.pypa.io/en/latest/
# ----------------------------------------------------------------

set dotenv-load := false
set export := true

justfile := justfile_directory() + "/.justfiles/virtualenv.justfile"

[private]
@default:
just --list --justfile {{ justfile }}
just --justfile {{ justfile }} --list

[private]
@fmt:
just --fmt --justfile {{ justfile }}
just --justfile {{ justfile }} --fmt

scan:
#!/usr/bin/env python
Expand Down
7 changes: 5 additions & 2 deletions home/.justfiles/virtualenvwrapper.justfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
# virtualenvwrapper recipes
# ----------------------------------------------------------------

set dotenv-load := false
set export := true

justfile := justfile_directory() + "/.justfiles/virtualenvwrapper.justfile"

[private]
@default:
just --list --justfile {{ justfile }}
just --justfile {{ justfile }} --list

[private]
@fmt:
just --fmt --justfile {{ justfile }}
just --justfile {{ justfile }} --fmt

# ----------------------------------------------------------------
# virtualenvwrapper hooks
Expand Down
11 changes: 5 additions & 6 deletions home/justfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ set export := true

# set unstable := true

export HOMEBREW_NO_ENV_HINTS := "true"
export JUST_UNSTABLE := "true"
export PIP_REQUIRE_VIRTUALENV := "false"

# export HOMEBREW_NO_AUTO_UPDATE := "true"

mod llm '.justfiles/llm.justfile'
mod macos '.justfiles/macos.justfile'
mod ollama '.justfiles/ollama.justfile'
mod virtualenv '.justfiles/virtualenv.justfile'
mod virtualenvwrapper '.justfiles/virtualenvwrapper.justfile'

# export HOMEBREW_NO_AUTO_UPDATE := "true"

export HOMEBREW_NO_ENV_HINTS := "true"
export PIP_REQUIRE_VIRTUALENV := "false"
HOST := `hostname -s`
python_310 := `pyenv latest 3.10`
python_311 := `pyenv latest 3.11`
Expand Down Expand Up @@ -199,8 +199,8 @@ _homebrew-services-restart:

@_pyenv-set-global:
pyenv global \
{{ python_311 }} \
{{ python_312 }} \
{{ python_311 }} \
{{ python_310 }} \
{{ python_39 }}

Expand All @@ -224,7 +224,6 @@ _homebrew-services-restart:
# ----------------------------------------------------------------

@uv-python-install *ARGS:
-uv python install {{ ARGS }} 3.13
-uv python install {{ ARGS }} 3.12
-uv python install {{ ARGS }} 3.11
-uv python install {{ ARGS }} 3.10
Expand Down

0 comments on commit 2109532

Please sign in to comment.