Run powerprofilesctl on the system Python

This commit is contained in:
SirBlob committed 2026-10-10 22:44:51 -04:00
1 parent f1dbff658a
commit f9f0cd1b2f
2 files changed
+7 -2

No files matched your search

+3 -2
View File
@@ -202,14 +202,15 @@ with `--check`.
## The interactive shell
`session/bashrc` is sourced from `~/.bashrc` and returns immediately in a
non-interactive shell, so it cannot disturb `scp` or `rsync`. It does three
things, each only when the tool is installed:
non-interactive shell, so it cannot disturb `scp` or `rsync`. It does four
things, the first three only when the tool is installed:
| Line | Effect |
| --- | --- |
| `session/env-bootstrap` | `BLOB_PATH` and `$BLOB_PATH/bin` on `PATH`, so `blob` resolves |
| `starship init bash` | the themed prompt, see [themes.md](themes.md#the-prompt) |
| `zoxide init bash --cmd cd` | `cd` learns the directories you actually use |
| `powerprofilesctl` function | runs it on `/usr/bin/python3`, since a mise Python ahead on `PATH` has no `gi` module |
`--cmd cd` replaces `cd` rather than adding a `z` command, so
`cd blomarchy` jumps to the last matching directory you have visited from
+4
View File
@@ -5,6 +5,10 @@ esac
[ -r "$HOME/.local/share/blob/session/env-bootstrap" ] && . "$HOME/.local/share/blob/session/env-bootstrap"
powerprofilesctl() {
/usr/bin/python3 /usr/bin/powerprofilesctl "$@"
}
command -v starship >/dev/null 2>&1 && eval "$(starship init bash)"
command -v zoxide >/dev/null 2>&1 && eval "$(zoxide init bash --cmd cd)"