mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-02-12 05:49:47 +08:00
Compare commits
No commits in common. "7e4c26860d74a01cd6d91fd10fcc28fccd740ddd" and "38ef5192cb1c43159b516d15ab8fed96f847b36b" have entirely different histories.
7e4c26860d
...
38ef5192cb
@ -10,12 +10,10 @@ plugins=(... brew)
|
||||
|
||||
## Shellenv
|
||||
|
||||
If `brew` is not found in the PATH, this plugin will attempt to find it in common locations, and execute
|
||||
`brew shellenv` to set the environment appropriately. This plugin will also export
|
||||
`HOMEBREW_PREFIX="$(brew --prefix)"` if not previously defined for convenience.
|
||||
|
||||
In case you installed `brew` in a non-common location, you can still set `BREW_LOCATION` variable pointing to
|
||||
the `brew` binary before sourcing `oh-my-zsh.sh` and it'll set up the environment.
|
||||
If `brew` is not found in the PATH, this plugin will attempt to find it in common
|
||||
locations, and execute `brew shellenv` to set the environment appropriately.
|
||||
This plugin will also export `HOMEBREW_PREFIX="$(brew --prefix)"` if not previously
|
||||
defined for convenience.
|
||||
|
||||
## Aliases
|
||||
|
||||
@ -35,9 +33,9 @@ the `brew` binary before sourcing `oh-my-zsh.sh` and it'll set up the environmen
|
||||
|
||||
## Completion
|
||||
|
||||
This plugin configures paths with Homebrew's completion functions automatically, so you don't need to do it
|
||||
manually. See: https://docs.brew.sh/Shell-Completion#configuring-completions-in-zsh.
|
||||
This plugin configures paths with Homebrew's completion functions automatically, so you don't need to do it manually. See: https://docs.brew.sh/Shell-Completion#configuring-completions-in-zsh.
|
||||
|
||||
With the release of Homebrew 1.0, they decided to bundle the zsh completion as part of the brew installation,
|
||||
so we no longer ship it with the brew plugin; now it only has brew aliases. If you find that brew completion
|
||||
no longer works, make sure you have your Homebrew installation fully up to date.
|
||||
With the release of Homebrew 1.0, they decided to bundle the zsh completion as part of the
|
||||
brew installation, so we no longer ship it with the brew plugin; now it only has brew
|
||||
aliases. If you find that brew completion no longer works, make sure you have your Homebrew
|
||||
installation fully up to date.
|
||||
|
||||
@ -1,10 +1,5 @@
|
||||
if (( ! $+commands[brew] )); then
|
||||
if [[ -n "$BREW_LOCATION" ]]; then
|
||||
if [[ ! -x "$BREW_LOCATION" ]]; then
|
||||
echo "[oh-my-zsh] $BREW_LOCATION is not executable"
|
||||
return
|
||||
fi
|
||||
elif [[ -x /opt/homebrew/bin/brew ]]; then
|
||||
if [[ -x /opt/homebrew/bin/brew ]]; then
|
||||
BREW_LOCATION="/opt/homebrew/bin/brew"
|
||||
elif [[ -x /usr/local/bin/brew ]]; then
|
||||
BREW_LOCATION="/usr/local/bin/brew"
|
||||
|
||||
@ -12,7 +12,6 @@ plugins=(... systemd)
|
||||
|
||||
| Alias | Command | Description |
|
||||
|:-----------------------|:-----------------------------------|:-----------------------------------------------------------------|
|
||||
| `sc-failed` | `systemctl --failed` | List failed systemd units |
|
||||
| `sc-list-units` | `systemctl list-units` | List all units systemd has in memory |
|
||||
| `sc-is-active` | `systemctl is-active` | Show whether a unit is active |
|
||||
| `sc-status` | `systemctl status` | Show terse runtime status information about one or more units |
|
||||
|
||||
@ -93,9 +93,6 @@ alias scu-enable-now="scu-enable --now"
|
||||
alias scu-disable-now="scu-disable --now"
|
||||
alias scu-mask-now="scu-mask --now"
|
||||
|
||||
# --failed commands
|
||||
alias scu-failed='systemctl --user --failed'
|
||||
alias sc-failed='systemctl --failed'
|
||||
|
||||
function systemd_prompt_info {
|
||||
local unit
|
||||
|
||||
Loading…
Reference in New Issue
Block a user