Add a couple of handy links
- ID
678e4b3- date
2023-12-26 00:02:59+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
f0d5074- message
Add a couple of handy links- changed files
3 files, 8 additions
Changed files
config.fish (5265) → config.fish (5384)
diff --git a/config.fish b/config.fish
index 0349981..4b6ff8a 100644
--- a/config.fish
+++ b/config.fish
@@ -72,6 +72,7 @@ prepend_to_path ~/repos/ttml2srt
# packages inside virtualenvs.
#
# See https://docs.python-guide.org/dev/pip-virtualenv/#requiring-an-active-virtual-environment-for-pip
+# See https://alexwlchan.net/# See https://alexwlchan.net/2023/fish-venv/
#
set -g -x PIP_REQUIRE_VIRTUALENV true
@@ -81,6 +82,7 @@ set -g -x PIP_REQUIRE_VIRTUALENV true
# These functions can't be autoloaded.
#
# See https://fishshell.com/docs/current/language.html#event
+# See https://alexwlchan.net/2023/fish-venv/
#
function __auto_auto_activate_venv --on-variable PWD --description "Auto activate/deactivate virtualenv when I change directories"
auto_activate_venv
fish_functions/auto_activate_venv.fish (1314) → fish_functions/auto_activate_venv.fish (1363)
diff --git a/fish_functions/auto_activate_venv.fish b/fish_functions/auto_activate_venv.fish
index bb24f1c..f2f1fd5 100644
--- a/fish_functions/auto_activate_venv.fish
+++ b/fish_functions/auto_activate_venv.fish
@@ -4,6 +4,9 @@
# them in the root of the Git repo for each project, and I always
# name them `~/.venv`. This means it's pretty easy to work out if
# a virtualenv exists for the current directory.
+#
+# See https://alexwlchan.net/2023/fish-venv/
+#
function auto_activate_venv --description "Auto activate/deactivate virtualenv when I change directories"
# Get the top-level directory of the current Git repo (if any)
fish_functions/venv.fish (597) → fish_functions/venv.fish (646)
diff --git a/fish_functions/venv.fish b/fish_functions/venv.fish
index fdb414d..9812965 100644
--- a/fish_functions/venv.fish
+++ b/fish_functions/venv.fish
@@ -3,6 +3,9 @@
# This is to prevent me from making a very common mistake, which is
# creating the venv and then immediately running "pip install" without
# activating it first.
+#
+# See https://alexwlchan.net/2023/fish-venv/
+#
function venv --description "Create and activate a new virtual environment"
echo "Creating virtual environment in "(pwd)"/.venv"
python3 -m venv .venv --upgrade-deps