Skip to content

Commit 3d38821

Browse files
committed
Make a note about only using venvs
1 parent d187634 commit 3d38821

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,15 @@ To set up this repo on a new computer, I run the following commands in a Fish sh
2121
$ source .venv/bin/activate.fish
2222
$ pip install -r requirements.txt
2323
```
24+
25+
3. Add some global pip config to [prevent installing anything outside virtual environments](https://blog.glyph.im/2023/08/get-your-mac-python-from-python-dot-org.html#and-always-use-virtual-environments):
26+
27+
```console
28+
$ mkdir -p ~/.pip
29+
$ echo -e "[global]\nrequire-virtualenv = true" > ~/.pip/pip.conf
30+
```
2431
25-
3. Install my Fish config, so Fish knows where to find all these scripts:
32+
4. Install my Fish config, so Fish knows where to find all these scripts:
2633

2734
```console
2835
$ ln -s ~/repos/scripts/config.fish ~/.config/fish/config.fish

config.fish

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ set -g -x fish_greeting ''
1818
set -x fish_function_path ~/repos/scripts/fish_functions $fish_function_path
1919

2020

21+
# Add any extra directories to my PATH variable.
22+
fish_add_path /Library/Frameworks/Python.framework/Versions/3.12/bin
23+
24+
2125
# This tells fish to run a couple of functions as event handlers --
2226
# that is, to run a function when a variable changes or something similar.
2327
# These functions can't be autoloaded.

0 commit comments

Comments
 (0)