Run powerprofilesctl on the system Python
This commit is contained in:
1 parent
f1dbff658a
commit
f9f0cd1b2f
2 files changed
+7
-2
No files matched your search
+3
-2
@@ -202,14 +202,15 @@ with `--check`.
|
|||||||
## The interactive shell
|
## The interactive shell
|
||||||
|
|
||||||
`session/bashrc` is sourced from `~/.bashrc` and returns immediately in a
|
`session/bashrc` is sourced from `~/.bashrc` and returns immediately in a
|
||||||
non-interactive shell, so it cannot disturb `scp` or `rsync`. It does three
|
non-interactive shell, so it cannot disturb `scp` or `rsync`. It does four
|
||||||
things, each only when the tool is installed:
|
things, the first three only when the tool is installed:
|
||||||
|
|
||||||
| Line | Effect |
|
| Line | Effect |
|
||||||
| --- | --- |
|
| --- | --- |
|
||||||
| `session/env-bootstrap` | `BLOB_PATH` and `$BLOB_PATH/bin` on `PATH`, so `blob` resolves |
|
| `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) |
|
| `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 |
|
| `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
|
`--cmd cd` replaces `cd` rather than adding a `z` command, so
|
||||||
`cd blomarchy` jumps to the last matching directory you have visited from
|
`cd blomarchy` jumps to the last matching directory you have visited from
|
||||||
|
|||||||
@@ -5,6 +5,10 @@ esac
|
|||||||
|
|
||||||
[ -r "$HOME/.local/share/blob/session/env-bootstrap" ] && . "$HOME/.local/share/blob/session/env-bootstrap"
|
[ -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 starship >/dev/null 2>&1 && eval "$(starship init bash)"
|
||||||
|
|
||||||
command -v zoxide >/dev/null 2>&1 && eval "$(zoxide init bash --cmd cd)"
|
command -v zoxide >/dev/null 2>&1 && eval "$(zoxide init bash --cmd cd)"
|
||||||
Reference in new issue
Block a user