mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-05 20:57:46 +08:00
Compare commits
3 Commits
765966606d
...
4ec055b890
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4ec055b890 | ||
|
|
cd7162f3d1 | ||
|
|
53259f628b |
@ -17,7 +17,7 @@ function title {
|
|||||||
: ${2=$1}
|
: ${2=$1}
|
||||||
|
|
||||||
case "$TERM" in
|
case "$TERM" in
|
||||||
cygwin|xterm*|putty*|rxvt*|konsole*|ansi|mlterm*)
|
cygwin|xterm*|putty*|rxvt*|konsole*|ansi|mlterm*|alacritty)
|
||||||
print -Pn "\e]2;${2:q}\a" # set window name
|
print -Pn "\e]2;${2:q}\a" # set window name
|
||||||
print -Pn "\e]1;${1:q}\a" # set tab name
|
print -Pn "\e]1;${1:q}\a" # set tab name
|
||||||
;;
|
;;
|
||||||
|
|||||||
@ -53,7 +53,7 @@ bgnotify () { ## args: (title, subtitle)
|
|||||||
|
|
||||||
bgnotify_begin() {
|
bgnotify_begin() {
|
||||||
bgnotify_timestamp=$EPOCHSECONDS
|
bgnotify_timestamp=$EPOCHSECONDS
|
||||||
bgnotify_lastcmd="$1"
|
bgnotify_lastcmd="${1:-$2}"
|
||||||
bgnotify_windowid=$(currentWindowId)
|
bgnotify_windowid=$(currentWindowId)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -15,10 +15,11 @@ plugins=(... brew)
|
|||||||
| `brewp` | `brew pin` | Pin a specified formula so that it's not upgraded. |
|
| `brewp` | `brew pin` | Pin a specified formula so that it's not upgraded. |
|
||||||
| `brews` | `brew list -1` | List installed formulae or the installed files for a given formula. |
|
| `brews` | `brew list -1` | List installed formulae or the installed files for a given formula. |
|
||||||
| `brewsp` | `brew list --pinned` | List pinned formulae, or show the version of a given formula. |
|
| `brewsp` | `brew list --pinned` | List pinned formulae, or show the version of a given formula. |
|
||||||
| `bubo` | `brew update && brew outdated` | Update Homebrew and all formulae, then list outdated formulae. |
|
| `bubo` | `brew update && brew outdated` | Update Homebrew data, then list outdated formulae and casks. |
|
||||||
| `bubc` | `brew upgrade && brew cleanup` | Upgrade outdated formulae, then run cleanup. |
|
| `bubc` | `brew upgrade && brew cleanup` | Upgrade outdated formulae and casks, then run cleanup. |
|
||||||
| `bubu` | `bubo && bubc` | Do the last two operations above. |
|
| `bubu` | `bubo && bubc` | Do the last two operations above. |
|
||||||
| `bcubo` | `brew update && brew outdated --cask` | Update Homebrew and all formulae, then list outdated casks. |
|
| `buf` | `brew upgrade --formula` | Upgrade only formulas (not casks). |
|
||||||
|
| `bcubo` | `brew update && brew outdated --cask` | Update Homebrew data, then list outdated casks. |
|
||||||
| `bcubc` | `brew cask reinstall $(brew outdated --cask) && brew cleanup` | Update outdated casks, then run cleanup. |
|
| `bcubc` | `brew cask reinstall $(brew outdated --cask) && brew cleanup` | Update outdated casks, then run cleanup. |
|
||||||
|
|
||||||
## Completion
|
## Completion
|
||||||
|
|||||||
@ -4,5 +4,6 @@ alias brewsp='brew list --pinned'
|
|||||||
alias bubo='brew update && brew outdated'
|
alias bubo='brew update && brew outdated'
|
||||||
alias bubc='brew upgrade && brew cleanup'
|
alias bubc='brew upgrade && brew cleanup'
|
||||||
alias bubu='bubo && bubc'
|
alias bubu='bubo && bubc'
|
||||||
|
alias buf='brew upgrade --formula'
|
||||||
alias bcubo='brew update && brew outdated --cask'
|
alias bcubo='brew update && brew outdated --cask'
|
||||||
alias bcubc='brew cask reinstall $(brew outdated --cask) && brew cleanup'
|
alias bcubc='brew cask reinstall $(brew outdated --cask) && brew cleanup'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user