summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorTuowen Zhao <ztuowen@gmail.com>2021-04-28 18:07:03 -0600
committerTuowen Zhao <ztuowen@gmail.com>2021-04-28 18:07:03 -0600
commitb21e3c4f28d0d55947285dcebf9f91b580384b09 (patch)
tree3c4e0d946709ecb180e95610f16a8ae88179fb46 /plugins
parentb6baa00fd2d8e44b5abda20f95461942b615258c (diff)
parent63a7422d8dd5eb93c849df0ab9e679e6f333818a (diff)
downloadzsh-b21e3c4f28d0d55947285dcebf9f91b580384b09.tar.gz
zsh-b21e3c4f28d0d55947285dcebf9f91b580384b09.tar.bz2
zsh-b21e3c4f28d0d55947285dcebf9f91b580384b09.zip
Merge remote-tracking branch 'origin/master'
Diffstat (limited to 'plugins')
-rw-r--r--plugins/archlinux/README.md306
-rw-r--r--plugins/archlinux/archlinux.plugin.zsh286
-rw-r--r--plugins/command-not-found/README.md1
-rw-r--r--plugins/command-not-found/command-not-found.plugin.zsh100
-rw-r--r--plugins/deno/.gitignore1
-rw-r--r--plugins/deno/README.md18
-rw-r--r--plugins/deno/deno.plugin.zsh23
-rw-r--r--plugins/fzf/fzf.plugin.zsh1
-rw-r--r--plugins/kubectl/README.md2
-rw-r--r--plugins/kubectl/kubectl.plugin.zsh2
-rw-r--r--plugins/npm/README.md4
-rw-r--r--plugins/npm/npm.plugin.zsh12
-rw-r--r--plugins/rails/README.md4
-rw-r--r--plugins/react-native/react-native.plugin.zsh3
-rwxr-xr-xplugins/shell-proxy/proxy.py5
-rw-r--r--plugins/shell-proxy/shell-proxy.plugin.zsh2
-rw-r--r--plugins/systemadmin/systemadmin.plugin.zsh3
17 files changed, 435 insertions, 338 deletions
diff --git a/plugins/archlinux/README.md b/plugins/archlinux/README.md
index 5882c7603..d6b41ee40 100644
--- a/plugins/archlinux/README.md
+++ b/plugins/archlinux/README.md
@@ -1,4 +1,4 @@
-# Archlinux plugin
+# Arch Linux plugin
This plugin adds some aliases and functions to work with Arch Linux.
@@ -10,145 +10,189 @@ plugins=(... archlinux)
## Features
-#### YAY
-
-| Alias | Command | Description |
-|---------|------------------------------------|---------------------------------------------------------------------|
-| yaconf | yay -Pg | Print current configuration |
-| yain | yay -S | Install packages from the repositories |
-| yains | yay -U | Install a package from a local file |
-| yainsd | yay -S --asdeps | Install packages as dependencies of another package |
-| yaloc | yay -Qi | Display information about a package in the local database |
-| yalocs | yay -Qs | Search for packages in the local database |
-| yalst | yay -Qe | List installed packages including from AUR (tagged as "local") |
-| yamir | yay -Syy | Force refresh of all package lists after updating mirrorlist |
-| yaorph | yay -Qtd | Remove orphans using yay |
-| yare | yay -R | Remove packages, keeping its settings and dependencies |
-| yarem | yay -Rns | Remove packages, including its settings and unneeded dependencies |
-| yarep | yay -Si | Display information about a package in the repositories |
-| yareps | yay -Ss | Search for packages in the repositories |
-| yaupg | yay -Syu | Sync with repositories before upgrading packages |
-| yasu | yay -Syu --no-confirm | Same as `yaupg`, but without confirmation |
-
-#### TRIZEN
-
-| Alias | Command | Description |
-|---------|------------------------------------|---------------------------------------------------------------------|
-| trconf | trizen -C | Fix all configuration files with vimdiff |
-| trin | trizen -S | Install packages from the repositories |
-| trins | trizen -U | Install a package from a local file |
-| trinsd | trizen -S --asdeps | Install packages as dependencies of another package |
-| trloc | trizen -Qi | Display information about a package in the local database |
-| trlocs | trizen -Qs | Search for packages in the local database |
-| trlst | trizen -Qe | List installed packages including from AUR (tagged as "local") |
-| trmir | trizen -Syy | Force refresh of all package lists after updating mirrorlist |
-| trorph | trizen -Qtd | Remove orphans using yaourt |
-| trre | trizen -R | Remove packages, keeping its settings and dependencies |
-| trrem | trizen -Rns | Remove packages, including its settings and unneeded dependencies |
-| trrep | trizen -Si | Display information about a package in the repositories |
-| trreps | trizen -Ss | Search for packages in the repositories |
-| trupd | trizen -Sy && sudo abs && sudo aur | Update and refresh local package, ABS and AUR databases |
-| trupd | trizen -Sy && sudo abs | Update and refresh the local package and ABS databases |
-| trupd | trizen -Sy && sudo aur | Update and refresh the local package and AUR databases |
-| trupd | trizen -Sy | Update and refresh the local package database |
-| trupg | trizen -Syua | Sync with repositories before upgrading all packages (from AUR too) |
-| trsu | trizen -Syua --no-confirm | Same as `trupg`, but without confirmation |
-| upgrade | trizen -Syu | Sync with repositories before upgrading packages |
-
-#### YAOURT
-
-| Alias | Command | Description |
-|---------|------------------------------------|---------------------------------------------------------------------|
-| yaconf | yaourt -C | Fix all configuration files with vimdiff |
-| yain | yaourt -S | Install packages from the repositories |
-| yains | yaourt -U | Install a package from a local file |
-| yainsd | yaourt -S --asdeps | Install packages as dependencies of another package |
-| yaloc | yaourt -Qi | Display information about a package in the local database |
-| yalocs | yaourt -Qs | Search for packages in the local database |
-| yalst | yaourt -Qe | List installed packages including from AUR (tagged as "local") |
-| yamir | yaourt -Syy | Force refresh of all package lists after updating mirrorlist |
-| yaorph | yaourt -Qtd | Remove orphans using yaourt |
-| yare | yaourt -R | Remove packages, keeping its settings and dependencies |
-| yarem | yaourt -Rns | Remove packages, including its settings and unneeded dependencies |
-| yarep | yaourt -Si | Display information about a package in the repositories |
-| yareps | yaourt -Ss | Search for packages in the repositories |
-| yaupd | yaourt -Sy && sudo abs && sudo aur | Update and refresh local package, ABS and AUR databases |
-| yaupd | yaourt -Sy && sudo abs | Update and refresh the local package and ABS databases |
-| yaupd | yaourt -Sy && sudo aur | Update and refresh the local package and AUR databases |
-| yaupd | yaourt -Sy | Update and refresh the local package database |
-| yaupg | yaourt -Syua | Sync with repositories before upgrading all packages (from AUR too) |
-| yasu | yaourt -Syua --no-confirm | Same as `yaupg`, but without confirmation |
-| upgrade | yaourt -Syu | Sync with repositories before upgrading packages |
-
-#### PACAUR
-
-| Alias | Command | Description |
-|---------|------------------------------------|---------------------------------------------------------------------|
-| pain | pacaur -S | Install packages from the repositories |
-| pains | pacaur -U | Install a package from a local file |
-| painsd | pacaur -S --asdeps | Install packages as dependencies of another package |
-| paloc | pacaur -Qi | Display information about a package in the local database |
-| palocs | pacaur -Qs | Search for packages in the local database |
-| palst | pacaur -Qe | List installed packages including from AUR (tagged as "local") |
-| pamir | pacaur -Syy | Force refresh of all package lists after updating mirrorlist |
-| paorph | pacaur -Qtd | Remove orphans using pacaur |
-| pare | pacaur -R | Remove packages, keeping its settings and dependencies |
-| parem | pacaur -Rns | Remove packages, including its settings and unneeded dependencies |
-| parep | pacaur -Si | Display information about a package in the repositories |
-| pareps | pacaur -Ss | Search for packages in the repositories |
-| paupd | pacaur -Sy && sudo abs && sudo aur | Update and refresh local package, ABS and AUR databases |
-| paupd | pacaur -Sy && sudo abs | Update and refresh the local package and ABS databases |
-| paupd | pacaur -Sy && sudo aur | Update and refresh the local package and AUR databases |
-| paupd | pacaur -Sy | Update and refresh the local package database |
-| paupg | pacaur -Syua | Sync with repositories before upgrading all packages (from AUR too) |
-| pasu | pacaur -Syua --no-confirm | Same as `paupg`, but without confirmation |
-| upgrade | pacaur -Syu | Sync with repositories before upgrading packages |
-
-#### PACMAN
-
-| Alias | Command | Description |
-|--------------|-----------------------------------------|--------------------------------------------------------------|
-| pacin | sudo pacman -S | Install packages from the repositories |
-| pacins | sudo pacman -U | Install a package from a local file |
-| pacinsd | sudo pacman -S --asdeps | Install packages as dependencies of another package |
-| pacloc | pacman -Qi | Display information about a package in the local database |
-| paclocs | pacman -Qs | Search for packages in the local database |
-| paclsorphans | sudo pacman -Qdt | List all orphaned packages |
-| pacmir | sudo pacman -Syy | Force refresh of all package lists after updating mirrorlist |
-| pacre | sudo pacman -R | Remove packages, keeping its settings and dependencies |
-| pacrem | sudo pacman -Rns | Remove packages, including its settings and dependencies |
-| pacrep | pacman -Si | Display information about a package in the repositories |
-| pacreps | pacman -Ss | Search for packages in the repositories |
-| pacrmorphans | sudo pacman -Rs $(pacman -Qtdq) | Delete all orphaned packages |
-| pacupd | sudo pacman -Sy && sudo abs && sudo aur | Update and refresh the local package, ABS and AUR databases |
-| pacupd | sudo pacman -Sy && sudo abs | Update and refresh the local package and ABS databases |
-| pacupd | sudo pacman -Sy && sudo aur | Update and refresh the local package and AUR databases |
-| pacupd | sudo pacman -Sy | Update and refresh the local package database |
-| pacupg | sudo pacman -Syu | Sync with repositories before upgrading packages |
-| upgrade | sudo pacman -Syu | Sync with repositories before upgrading packages |
-| pacfileupg | sudo pacman -Fy | Download fresh package databases from the server |
-| pacfiles | pacman -F | Search package file names for matching strings |
-| pacls | pacman -Ql | List files in a package |
-| pacown | pacman -Qo | Show which package owns a file |
-
-| Function | Description |
-|----------------|------------------------------------------------------|
-| pacdisowned | List all disowned files in your system |
-| paclist | List all installed packages with a short description |
-| pacmanallkeys | Get all keys for developers and trusted users |
-| pacmansignkeys | Locally trust all keys passed as parameters |
-| pacweb | Open the website of an ArchLinux package |
+### Pacman
+
+| Alias | Command | Description |
+|--------------|----------------------------------------|------------------------------------------------------------------|
+| pacin | `sudo pacman -S` | Install packages from the repositories |
+| pacins | `sudo pacman -U` | Install a package from a local file |
+| pacinsd | `sudo pacman -S --asdeps` | Install packages as dependencies of another package |
+| pacloc | `pacman -Qi` | Display information about a package in the local database |
+| paclocs | `pacman -Qs` | Search for packages in the local database |
+| paclsorphans | `sudo pacman -Qdt` | List all orphaned packages |
+| pacmir | `sudo pacman -Syy` | Force refresh of all package lists after updating mirrorlist |
+| pacre | `sudo pacman -R` | Remove packages, keeping its settings and dependencies |
+| pacrem | `sudo pacman -Rns` | Remove packages, including its settings and dependencies |
+| pacrep | `pacman -Si` | Display information about a package in the repositories |
+| pacreps | `pacman -Ss` | Search for packages in the repositories |
+| pacrmorphans | `sudo pacman -Rs $(pacman -Qtdq)` | Delete all orphaned packages |
+| pacupd | `sudo pacman -Sy` | Update and refresh local package, ABS and AUR databases |
+| pacupg | `sudo pacman -Syu` | Sync with repositories before upgrading packages |
+| pacfileupg | `sudo pacman -Fy` | Download fresh package databases from the server |
+| pacfiles | `pacman -F` | Search package file names for matching strings |
+| pacls | `pacman -Ql` | List files in a package |
+| pacown | `pacman -Qo` | Show which package owns a file |
+| upgrade[²](#f2) | `sudo pacman -Syu` | Sync with repositories before upgrading packages |
+
+| Function | Description |
+|----------------|-----------------------------------------------------------|
+| pacdisowned | List all disowned files in your system |
+| paclist | List all explicitly installed packages with a description |
+| pacmanallkeys | Get all keys for developers and trusted users |
+| pacmansignkeys | Locally trust all keys passed as parameters |
+| pacweb | Open the website of an ArchLinux package |
+
+Note: paclist used to print packages with a description which are (1) explicitly installed
+and (2) available for upgrade. Due to flawed scripting, it also printed all packages if no
+upgrades were available. Use `pacman -Que` instead.
+
+### AUR helpers
+
+#### Aura
+
+| Alias | Command | Description |
+|---------|-------------------------------------------------|-------------------------------------------------------------------------|
+| auin | `sudo aura -S` | Install packages from the repositories |
+| aurin | `sudo aura -A` | Install packages from the repositories |
+| auins | `sudo aura -U` | Install a package from a local file |
+| auinsd | `sudo aura -S --asdeps` | Install packages as dependencies of another package (repositories only) |
+| aurinsd | `sudo aura -A --asdeps` | Install packages as dependencies of another package (AUR only) |
+| auloc | `aura -Qi` | Display information about a package in the local database |
+| aulocs | `aura -Qs` | Search for packages in the local database |
+| auls | `aura -Qql` | List all files owned by a given package |
+| aulst | `aura -Qe` | List installed packages including from AUR (tagged as "local") |
+| aumir | `sudo aura -Syy` | Force refresh of all package lists after updating mirrorlist |
+| aurph | `sudo aura -Oj` | Remove orphans using aura |
+| auown | `aura -Qqo` | Search for packages that own the specified file(s) |
+| aure | `sudo aura -R` | Remove packages, keeping its settings and dependencies |
+| aurem | `sudo aura -Rns` | Remove packages, including its settings and unneeded dependencies |
+| aurep | `aura -Si` | Display information about a package in the repositories |
+| aurrep | `aura -Ai` | Display information about a package from AUR |
+| aureps | `aura -As --both` | Search for packages in the repositories and AUR |
+| auras | `aura -As --both` | Same as above |
+| auupd | `sudo aura -Sy` | Update and refresh local package, ABS and AUR databases |
+| auupg | `sudo sh -c "aura -Syu && aura -Au"` | Sync with repositories before upgrading all packages (from AUR too) |
+| ausu | `sudo sh -c "aura -Syu --no-confirm && aura -Au --no-confirm"` | Same as `auupg`, but without confirmation |
+| upgrade[²](#f2) | `sudo aura -Syu` | Sync with repositories before upgrading packages |
+
+| Function | Description |
+|-----------------|---------------------------------------------------------------------|
+| auownloc _file_ | Display information about a package that owns the specified file(s) |
+| auownls _file_ | List all files owned by a package that owns the specified file(s) |
+
+#### Pacaur
+
+| Alias | Command | Description |
+|---------|-----------------------------------|---------------------------------------------------------------------|
+| pain | `pacaur -S` | Install packages from the repositories |
+| pains | `pacaur -U` | Install a package from a local file |
+| painsd | `pacaur -S --asdeps` | Install packages as dependencies of another package |
+| paloc | `pacaur -Qi` | Display information about a package in the local database |
+| palocs | `pacaur -Qs` | Search for packages in the local database |
+| palst | `pacaur -Qe` | List installed packages including from AUR (tagged as "local") |
+| pamir | `pacaur -Syy` | Force refresh of all package lists after updating mirrorlist |
+| paorph | `pacaur -Qtd` | Remove orphans using pacaur |
+| pare | `pacaur -R` | Remove packages, keeping its settings and dependencies |
+| parem | `pacaur -Rns` | Remove packages, including its settings and unneeded dependencies |
+| parep | `pacaur -Si` | Display information about a package in the repositories |
+| pareps | `pacaur -Ss` | Search for packages in the repositories |
+| paupd | `pacaur -Sy` | Update and refresh local package, ABS and AUR databases |
+| paupg | `pacaur -Syua` | Sync with repositories before upgrading all packages (from AUR too) |
+| pasu | `pacaur -Syua --no-confirm` | Same as `paupg`, but without confirmation |
+| upgrade[²](#f2) | `pacaur -Syu` | Sync with repositories before upgrading packages |
+
+#### Trizen
+
+| Alias | Command | Description |
+|---------|-----------------------------------|---------------------------------------------------------------------|
+| trconf | `trizen -C` | Fix all configuration files with vimdiff |
+| trin | `trizen -S` | Install packages from the repositories |
+| trins | `trizen -U` | Install a package from a local file |
+| trinsd | `trizen -S --asdeps` | Install packages as dependencies of another package |
+| trloc | `trizen -Qi` | Display information about a package in the local database |
+| trlocs | `trizen -Qs` | Search for packages in the local database |
+| trlst | `trizen -Qe` | List installed packages including from AUR (tagged as "local") |
+| trmir | `trizen -Syy` | Force refresh of all package lists after updating mirrorlist |
+| trorph | `trizen -Qtd` | Remove orphans using yaourt |
+| trre | `trizen -R` | Remove packages, keeping its settings and dependencies |
+| trrem | `trizen -Rns` | Remove packages, including its settings and unneeded dependencies |
+| trrep | `trizen -Si` | Display information about a package in the repositories |
+| trreps | `trizen -Ss` | Search for packages in the repositories |
+| trupd | `trizen -Sy` | Update and refresh local package, ABS and AUR databases |
+| trupg | `trizen -Syua` | Sync with repositories before upgrading all packages (from AUR too) |
+| trsu | `trizen -Syua --no-confirm` | Same as `trupg`, but without confirmation |
+| upgrade[²](#f2) | `trizen -Syu` | Sync with repositories before upgrading packages |
+
+#### Yaourt[¹](#f1)
+
+| Alias | Command | Description |
+|---------|-----------------------------------|---------------------------------------------------------------------|
+| yaconf | `yaourt -C` | Fix all configuration files with vimdiff |
+| yain | `yaourt -S` | Install packages from the repositories |
+| yains | `yaourt -U` | Install a package from a local file |
+| yainsd | `yaourt -S --asdeps` | Install packages as dependencies of another package |
+| yaloc | `yaourt -Qi` | Display information about a package in the local database |
+| yalocs | `yaourt -Qs` | Search for packages in the local database |
+| yalst | `yaourt -Qe` | List installed packages including from AUR (tagged as "local") |
+| yamir | `yaourt -Syy` | Force refresh of all package lists after updating mirrorlist |
+| yaorph | `yaourt -Qtd` | Remove orphans using yaourt |
+| yare | `yaourt -R` | Remove packages, keeping its settings and dependencies |
+| yarem | `yaourt -Rns` | Remove packages, including its settings and unneeded dependencies |
+| yarep | `yaourt -Si` | Display information about a package in the repositories |
+| yareps | `yaourt -Ss` | Search for packages in the repositories |
+| yaupd | `yaourt -Sy` | Update and refresh local package, ABS and AUR databases |
+| yaupg | `yaourt -Syua` | Sync with repositories before upgrading all packages (from AUR too) |
+| yasu | `yaourt -Syua --no-confirm` | Same as `yaupg`, but without confirmation |
+| upgrade[²](#f2) | `yaourt -Syu` | Sync with repositories before upgrading packages |
+
+#### Yay[¹](#f1)
+
+| Alias | Command | Description |
+|---------|--------------------------------|-------------------------------------------------------------------|
+| yaconf | `yay -Pg` | Print current configuration |
+| yain | `yay -S` | Install packages from the repositories |
+| yains | `yay -U` | Install a package from a local file |
+| yainsd | `yay -S --asdeps` | Install packages as dependencies of another package |
+| yaloc | `yay -Qi` | Display information about a package in the local database |
+| yalocs | `yay -Qs` | Search for packages in the local database |
+| yalst | `yay -Qe` | List installed packages including from AUR (tagged as "local") |
+| yamir | `yay -Syy` | Force refresh of all package lists after updating mirrorlist |
+| yaorph | `yay -Qtd` | Remove orphans using yay |
+| yare | `yay -R` | Remove packages, keeping its settings and dependencies |
+| yarem | `yay -Rns` | Remove packages, including its settings and unneeded dependencies |
+| yarep | `yay -Si` | Display information about a package in the repositories |
+| yareps | `yay -Ss` | Search for packages in the repositories |
+| yaupd | `yay -Sy` | Update and refresh local package, ABS and AUR databases |
+| yaupg | `yay -Syu` | Sync with repositories before upgrading packages |
+| yasu | `yay -Syu --no-confirm` | Same as `yaupg`, but without confirmation |
+| upgrade[²](#f2) | `yay -Syu` | Sync with repositories before upgrading packages |
---
+<span id="f1">¹</span>
+Yay and Yaourt aliases overlap. If both are installed, yay will take precedence.
+
+<span id="f2">²</span>
+The `upgrade` alias is set for all package managers. Its value will depend on
+whether the package manager is installed, checked in the following order:
+
+1. `yay`
+2. `yaourt`
+3. `trizen`
+4. `pacaur`
+5. `aura`
+6. `pacman`
+
## Contributors
- Benjamin Boudreau - dreurmail@gmail.com
- Celso Miranda - contacto@celsomiranda.net
+- ratijas (ivan tkachenko) - me@ratijas.tk
+- Juraj Fiala - doctorjellyface@riseup.net
- KhasMek - Boushh@gmail.com
+- Majora320 (Moses Miller) - Majora320@gmail.com
- Martin Putniorz - mputniorz@gmail.com
- MatthR3D - matthr3d@gmail.com
- ornicar - thibault.duplessis@gmail.com
-- Juraj Fiala - doctorjellyface@riseup.net
-- Majora320 (Moses Miller) - Majora320@gmail.com
- Ybalrid (Arthur Brainville) - ybalrid@ybalrid.info
+- Jeff M. Hubbard - jeffmhubbard@gmail.com
diff --git a/plugins/archlinux/archlinux.plugin.zsh b/plugins/archlinux/archlinux.plugin.zsh
index 32f09cef9..c94fb8f6c 100644
--- a/plugins/archlinux/archlinux.plugin.zsh
+++ b/plugins/archlinux/archlinux.plugin.zsh
@@ -1,138 +1,6 @@
-if (( $+commands[trizen] )); then
- alias trconf='trizen -C'
- alias trupg='trizen -Syua'
- alias trsu='trizen -Syua --noconfirm'
- alias trin='trizen -S'
- alias trins='trizen -U'
- alias trre='trizen -R'
- alias trrem='trizen -Rns'
- alias trrep='trizen -Si'
- alias trreps='trizen -Ss'
- alias trloc='trizen -Qi'
- alias trlocs='trizen -Qs'
- alias trlst='trizen -Qe'
- alias trorph='trizen -Qtd'
- alias trinsd='trizen -S --asdeps'
- alias trmir='trizen -Syy'
-
-
- if (( $+commands[abs] && $+commands[aur] )); then
- alias trupd='trizen -Sy && sudo abs && sudo aur'
- elif (( $+commands[abs] )); then
- alias trupd='trizen -Sy && sudo abs'
- elif (( $+commands[aur] )); then
- alias trupd='trizen -Sy && sudo aur'
- else
- alias trupd='trizen -Sy'
- fi
-fi
-
-if (( $+commands[yaourt] )); then
- alias yaconf='yaourt -C'
- alias yaupg='yaourt -Syua'
- alias yasu='yaourt -Syua --noconfirm'
- alias yain='yaourt -S'
- alias yains='yaourt -U'
- alias yare='yaourt -R'
- alias yarem='yaourt -Rns'
- alias yarep='yaourt -Si'
- alias yareps='yaourt -Ss'
- alias yaloc='yaourt -Qi'
- alias yalocs='yaourt -Qs'
- alias yalst='yaourt -Qe'
- alias yaorph='yaourt -Qtd'
- alias yainsd='yaourt -S --asdeps'
- alias yamir='yaourt -Syy'
-
-
- if (( $+commands[abs] && $+commands[aur] )); then
- alias yaupd='yaourt -Sy && sudo abs && sudo aur'
- elif (( $+commands[abs] )); then
- alias yaupd='yaourt -Sy && sudo abs'
- elif (( $+commands[aur] )); then
- alias yaupd='yaourt -Sy && sudo aur'
- else
- alias yaupd='yaourt -Sy'
- fi
-fi
-
-if (( $+commands[yay] )); then
- alias yaconf='yay -Pg'
- alias yaupg='yay -Syu'
- alias yasu='yay -Syu --noconfirm'
- alias yain='yay -S'
- alias yains='yay -U'
- alias yare='yay -R'
- alias yarem='yay -Rns'
- alias yarep='yay -Si'
- alias yareps='yay -Ss'
- alias yaloc='yay -Qi'
- alias yalocs='yay -Qs'
- alias yalst='yay -Qe'
- alias yaorph='yay -Qtd'
- alias yainsd='yay -S --asdeps'
- alias yamir='yay -Syy'
-
-
- if (( $+commands[abs] && $+commands[aur] )); then
- alias yaupd='yay -Sy && sudo abs && sudo aur'
- elif (( $+commands[abs] )); then
- alias yaupd='yay -Sy && sudo abs'
- elif (( $+commands[aur] )); then
- alias yaupd='yay -Sy && sudo aur'
- else
- alias yaupd='yay -Sy'
- fi
-fi
-
-if (( $+commands[pacaur] )); then
- alias paupg='pacaur -Syu'
- alias pasu='pacaur -Syu --noconfirm'
- alias pain='pacaur -S'
- alias pains='pacaur -U'
- alias pare='pacaur -R'
- alias parem='pacaur -Rns'
- alias parep='pacaur -Si'
- alias pareps='pacaur -Ss'
- alias paloc='pacaur -Qi'
- alias palocs='pacaur -Qs'
- alias palst='pacaur -Qe'
- alias paorph='pacaur -Qtd'
- alias painsd='pacaur -S --asdeps'
- alias pamir='pacaur -Syy'
-
- if (( $+commands[abs] && $+commands[aur] )); then
- alias paupd='pacaur -Sy && sudo abs && sudo aur'
- elif (( $+commands[abs] )); then
- alias paupd='pacaur -Sy && sudo abs'
- elif (( $+commands[aur] )); then
- alias paupd='pacaur -Sy && sudo aur'
- else
- alias paupd='pacaur -Sy'
- fi
-fi
-
-if (( $+commands[trizen] )); then
- function upgrade() {
- trizen -Syu
- }
-elif (( $+commands[pacaur] )); then
- function upgrade() {
- pacaur -Syu
- }
-elif (( $+commands[yaourt] )); then
- function upgrade() {
- yaourt -Syu
- }
-elif (( $+commands[yay] )); then
- function upgrade() {
- yay -Syu
- }
-else
- function upgrade() {
- sudo pacman -Syu
- }
-fi
+#######################################
+# Pacman #
+#######################################
# Pacman - https://wiki.archlinux.org/index.php/Pacman_Tips
alias pacupg='sudo pacman -Syu'
@@ -152,22 +20,14 @@ alias pacfileupg='sudo pacman -Fy'
alias pacfiles='pacman -F'
alias pacls='pacman -Ql'
alias pacown='pacman -Qo'
-
-
-if (( $+commands[abs] && $+commands[aur] )); then
- alias pacupd='sudo pacman -Sy && sudo abs && sudo aur'
-elif (( $+commands[abs] )); then
- alias pacupd='sudo pacman -Sy && sudo abs'
-elif (( $+commands[aur] )); then
- alias pacupd='sudo pacman -Sy && sudo aur'
-else
- alias pacupd='sudo pacman -Sy'
-fi
+alias pacupd="sudo pacman -Sy"
+alias upgrade='sudo pacman -Syu'
function paclist() {
- # Source: https://bbs.archlinux.org/viewtopic.php?id=93683
- LC_ALL=C pacman -Qei $(pacman -Qu | cut -d " " -f 1) | \
- awk 'BEGIN {FS=":"} /^Name/{printf("\033[1;36m%s\033[1;37m", $2)} /^Description/{print $2}'
+ # Based on https://bbs.archlinux.org/viewtopic.php?id=93683
+ pacman -Qqe | \
+ xargs -I '{}' \
+ expac "${bold_color}% 20n ${fg_no_bold[white]}%d${reset_color}" '{}'
}
function pacdisowned() {
@@ -187,11 +47,7 @@ function pacdisowned() {
comm -23 "$fs" "$db"
}
-function pacmanallkeys() {
- curl -sL https://www.archlinux.org/people/{developers,trusted-users}/ | \
- awk -F\" '(/keyserver.ubuntu.com/) { sub(/.*search=0x/,""); print $1}' | \
- xargs sudo pacman-key --recv-keys
-}
+alias pacmanallkeys='sudo pacman-key --refresh-keys'
function pacmansignkeys() {
local key
@@ -205,6 +61,15 @@ function pacmansignkeys() {
if (( $+commands[xdg-open] )); then
function pacweb() {
+ if [[ $# = 0 || "$1" =~ '--help|-h' ]]; then
+ local underline_color="\e[${color[underline]}m"
+ echo "$0 - open the website of an ArchLinux package"
+ echo
+ echo "Usage:"
+ echo " $bold_color$0$reset_color ${underline_color}target${reset_color}"
+ return 1
+ fi
+
local pkg="$1"
local infos="$(LANG=C pacman -Si "$pkg")"
if [[ -z "$infos" ]]; then
@@ -215,3 +80,116 @@ if (( $+commands[xdg-open] )); then
xdg-open "https://www.archlinux.org/packages/$repo/$arch/$pkg/" &>/dev/null
}
fi
+
+#######################################
+# AUR helpers #
+#######################################
+
+if (( $+commands[aura] )); then
+ alias auin='sudo aura -S'
+ alias aurin='sudo aura -A'
+ alias auins='sudo aura -U'
+ alias auinsd='sudo aura -S --asdeps'
+ alias aurinsd='sudo aura -A --asdeps'
+ alias auloc='aura -Qi'
+ alias aulocs='aura -Qs'
+ alias aulst='aura -Qe'
+ alias aumir='sudo aura -Syy'
+ alias aurph='sudo aura -Oj'
+ alias aure='sudo aura -R'
+ alias aurem='sudo aura -Rns'
+ alias aurep='aura -Si'
+ alias aurrep='aura -Ai'
+ alias aureps='aura -As --both'
+ alias auras='aura -As --both'
+ alias auupd="sudo aura -Sy"
+ alias auupg='sudo sh -c "aura -Syu && aura -Au"'
+ alias ausu='sudo sh -c "aura -Syu --no-confirm && aura -Au --no-confirm"'
+ alias upgrade='sudo aura -Syu'
+
+ # extra bonus specially for aura
+ alias auown="aura -Qqo"
+ alias auls="aura -Qql"
+ function auownloc() { aura -Qi $(aura -Qqo $@); }
+ function auownls () { aura -Qql $(aura -Qqo $@); }
+fi
+
+if (( $+commands[pacaur] )); then
+ alias paupg='pacaur -Syu'
+ alias pasu='pacaur -Syu --noconfirm'
+ alias pain='pacaur -S'
+ alias pains='pacaur -U'
+ alias pare='pacaur -R'
+ alias parem='pacaur -Rns'
+ alias parep='pacaur -Si'
+ alias pareps='pacaur -Ss'
+ alias paloc='pacaur -Qi'
+ alias palocs='pacaur -Qs'
+ alias palst='pacaur -Qe'
+ alias paorph='pacaur -Qtd'
+ alias painsd='pacaur -S --asdeps'
+ alias pamir='pacaur -Syy'
+ alias paupd="pacaur -Sy"
+ alias upgrade='pacaur -Syu'
+fi
+
+if (( $+commands[trizen] )); then
+ alias trconf='trizen -C'
+ alias trupg='trizen -Syua'
+ alias trsu='trizen -Syua --noconfirm'
+ alias trin='trizen -S'
+ alias trins='trizen -U'
+ alias trre='trizen -R'
+ alias trrem='trizen -Rns'
+ alias trrep='trizen -Si'
+ alias trreps='trizen -Ss'
+ alias trloc='trizen -Qi'
+ alias trlocs='trizen -Qs'
+ alias trlst='trizen -Qe'
+ alias trorph='trizen -Qtd'
+ alias trinsd='trizen -S --asdeps'
+ alias trmir='trizen -Syy'
+ alias trupd="trizen -Sy"
+ alias upgrade='trizen -Syu'
+fi
+
+if (( $+commands[yaourt] )); then
+ alias yaconf='yaourt -C'
+ alias yaupg='yaourt -Syua'
+ alias yasu='yaourt -Syua --noconfirm'
+ alias yain='yaourt -S'
+ alias yains='yaourt -U'
+ alias yare='yaourt -R'
+ alias yarem='yaourt -Rns'
+ alias yarep='yaourt -Si'
+ alias yareps='yaourt -Ss'
+ alias yaloc='yaourt -Qi'
+ alias yalocs='yaourt -Qs'
+ alias yalst='yaourt -Qe'
+ alias yaorph='yaourt -Qtd'
+ alias yainsd='yaourt -S --asdeps'
+ alias yamir='yaourt -Syy'
+ alias yaupd="yaourt -Sy"
+ alias upgrade='yaourt -Syu'
+fi
+
+if (( $+commands[yay] )); then
+ alias yaconf='yay -Pg'
+ alias yaupg='yay -Syu'
+ alias yasu='yay -Syu --noconfirm'
+ alias yain='yay -S'
+ alias yains='yay -U'
+ alias yare='yay -R'
+ alias yarem='yay -Rns'
+ alias yarep='yay -Si'
+ alias yareps='yay -Ss'
+ alias yaloc='yay -Qi'
+ alias yalocs='yay -Qs'
+ alias yalst='yay -Qe'
+ alias yaorph='yay -Qtd'
+ alias yainsd='yay -S --asdeps'
+ alias yamir='yay -Syy'
+ alias yaupd="yay -Sy"
+ alias upgrade='yay -Syu'
+fi
+
diff --git a/plugins/command-not-found/README.md b/plugins/command-not-found/README.md
index 1cf4ba66e..f267f0c89 100644
--- a/plugins/command-not-found/README.md
+++ b/plugins/command-not-found/README.md
@@ -28,5 +28,6 @@ It works out of the box with the command-not-found packages for:
- [macOS (Homebrew)](https://github.com/Homebrew/homebrew-command-not-found)
- [Fedora](https://fedoraproject.org/wiki/Features/PackageKitCommandNotFound)
- [NixOS](https://github.com/NixOS/nixpkgs/tree/master/nixos/modules/programs/command-not-found)
+- [Termux](https://github.com/termux/command-not-found)
You can add support for other platforms by submitting a Pull Request.
diff --git a/plugins/command-not-found/command-not-found.plugin.zsh b/plugins/command-not-found/command-not-found.plugin.zsh
index aea1e1b4c..cbf9a0a8e 100644
--- a/plugins/command-not-found/command-not-found.plugin.zsh
+++ b/plugins/command-not-found/command-not-found.plugin.zsh
@@ -1,52 +1,62 @@
-# Uses the command-not-found package zsh support
-# as seen in https://www.porcheron.info/command-not-found-for-zsh/
-# this is installed in Ubuntu
-
-if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-not-found ]; then
- function command_not_found_handler {
- # check because c-n-f could've been removed in the meantime
- if [ -x /usr/lib/command-not-found ]; then
- /usr/lib/command-not-found -- "$1"
- return $?
- elif [ -x /usr/share/command-not-found/command-not-found ]; then
- /usr/share/command-not-found/command-not-found -- "$1"
- return $?
- else
- printf "zsh: command not found: %s\n" "$1" >&2
- return 127
- fi
- return 0
- }
+## Platforms with a built-in command-not-found handler init file
+
+for file (
+ # Arch Linux. Must have pkgfile installed: https://wiki.archlinux.org/index.php/Pkgfile#Command_not_found
+ /usr/share/doc/pkgfile/command-not-found.zsh
+ # macOS (M1 and classic Homebrew): https://github.com/Homebrew/homebrew-command-not-found
+ /opt/homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh
+ /usr/local/Homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh
+); do
+ if [[ -r "$file" ]]; then
+ source "$file"
+ unset file
+ return 0
+ fi
+done
+unset file
+
+
+## Platforms with manual command_not_found_handler() setup
+
+# Debian and derivatives: https://launchpad.net/ubuntu/+source/command-not-found
+if [[ -x /usr/lib/command-not-found || -x /usr/share/command-not-found/command-not-found ]]; then
+ command_not_found_handler() {
+ if [[ -x /usr/lib/command-not-found ]]; then
+ /usr/lib/command-not-found -- "$1"
+ return $?
+ elif [[ -x /usr/share/command-not-found/command-not-found ]]; then
+ /usr/share/command-not-found/command-not-found -- "$1"
+ return $?
+ else
+ printf "zsh: command not found: %s\n" "$1" >&2
+ return 127
+ fi
+ }
fi
-# Arch Linux command-not-found support, you must have package pkgfile installed
-# https://wiki.archlinux.org/index.php/Pkgfile#.22Command_not_found.22_hook
-[[ -e /usr/share/doc/pkgfile/command-not-found.zsh ]] && source /usr/share/doc/pkgfile/command-not-found.zsh
-
-# Fedora command-not-found support
-if [ -f /usr/libexec/pk-command-not-found ]; then
- command_not_found_handler() {
- runcnf=1
- retval=127
- [ ! -S /var/run/dbus/system_bus_socket ] && runcnf=0
- [ ! -x /usr/libexec/packagekitd ] && runcnf=0
- if [ $runcnf -eq 1 ]; then
- /usr/libexec/pk-command-not-found $@
- retval=$?
- fi
- return $retval
- }
+# Fedora: https://fedoraproject.org/wiki/Features/PackageKitCommandNotFound
+if [[ -x /usr/libexec/pk-command-not-found ]]; then
+ command_not_found_handler() {
+ if [[ -S /var/run/dbus/system_bus_socket && -x /usr/libexec/packagekitd ]]; then
+ /usr/libexec/pk-command-not-found -- "$@"
+ return $?
+ fi
+
+ printf "zsh: command not found: %s\n" "$1" >&2
+ return 127
+ }
fi
-# OSX command-not-found support
-# https://github.com/Homebrew/homebrew-command-not-found
-if [[ -s '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh' ]]; then
- source '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-command-not-found/handler.sh'
+# NixOS: https://github.com/NixOS/nixpkgs/tree/master/nixos/modules/programs/command-not-found
+if [[ -x /run/current-system/sw/bin/command-not-found ]]; then
+ command_not_found_handler() {
+ /run/current-system/sw/bin/command-not-found -- "$@"
+ }
fi
-# NixOS command-not-found support
-if [ -x /run/current-system/sw/bin/command-not-found ]; then
- command_not_found_handler() {
- /run/current-system/sw/bin/command-not-found $@
- }
+# Termux: https://github.com/termux/command-not-found
+if [[ -x /data/data/com.termux/files/usr/libexec/termux/command-not-found ]]; then
+ command_not_found_handler() {
+ /data/data/com.termux/files/usr/libexec/termux/command-not-found -- "$1"
+ }
fi
diff --git a/plugins/deno/.gitignore b/plugins/deno/.gitignore
new file mode 100644
index 000000000..cba5b03e8
--- /dev/null
+++ b/plugins/deno/.gitignore
@@ -0,0 +1 @@
+_deno
diff --git a/plugins/deno/README.md b/plugins/deno/README.md
new file mode 100644
index 000000000..828e6af39
--- /dev/null
+++ b/plugins/deno/README.md
@@ -0,0 +1,18 @@
+# Deno Plugin
+
+This plugin sets up completion and aliases for [Deno](https://deno.land).
+
+## Aliases
+
+| Alias | Full command |
+| ----- | ---------------- |
+| db | deno bundle |
+| dc | deno compile |
+| dca | deno cache |
+| dfmt | deno fmt |
+| dh | deno help |
+| dli | deno lint |
+| drn | deno run |
+| drw | deno run --watch |
+| dts | deno test |
+| dup | deno upgrade |
diff --git a/plugins/deno/deno.plugin.zsh b/plugins/deno/deno.plugin.zsh
new file mode 100644
index 000000000..a37b3bec4
--- /dev/null
+++ b/plugins/deno/deno.plugin.zsh
@@ -0,0 +1,23 @@
+# ALIASES
+alias db='deno bundle'
+alias dc='deno compile'
+alias dca='deno cache'
+alias dfmt='deno fmt'
+alias dh='deno help'
+alias dli='deno lint'
+alias drn='deno run'
+alias drw='deno run --watch'
+alias dts='deno test'
+alias dup='deno upgrade'
+
+# COMPLETION FUNCTION
+if (( $+commands[deno] )); then
+ if [[ ! -f $ZSH_CACHE_DIR/deno_version ]] \
+ || [[ "$(deno --version)" != "$(< "$ZSH_CACHE_DIR/deno_version")" ]] \
+ || [[ ! -f $ZSH/plugins/deno/_deno ]]; then
+ deno completions zsh > $ZSH/plugins/deno/_deno
+ deno --version > $ZSH_CACHE_DIR/deno_version
+ fi
+ autoload -Uz _deno
+ _comps[deno]=_deno
+fi
diff --git a/plugins/fzf/fzf.plugin.zsh b/plugins/fzf/fzf.plugin.zsh
index 69ec1d411..a979fe222 100644
--- a/plugins/fzf/fzf.plugin.zsh
+++ b/plugins/fzf/fzf.plugin.zsh
@@ -7,6 +7,7 @@ function setup_using_base_dir() {
fzfdirs=(
"${HOME}/.fzf"
"${HOME}/.nix-profile/share/fzf"
+ "${XDG_DATA_HOME:-$HOME/.local/share}/fzf"
"/usr/local/opt/fzf"
"/usr/share/fzf"
"/usr/local/share/examples/fzf"
diff --git a/plugins/kubectl/README.md b/plugins/kubectl/README.md
index 7a6cdaa59..8937b2b80 100644
--- a/plugins/kubectl/README.md
+++ b/plugins/kubectl/README.md
@@ -49,7 +49,7 @@ plugins=(... kubectl)
| kdeli | `kubectl delete ingress` | Delete ingress resources matching passed argument |
| | | **Namespace management** |
| kgns | `kubectl get namespaces` | List the current namespaces in a cluster |
-| kcn | `kubectl config set-context ...` | Change current namespace |
+| kcn | `kubectl config set-context --current --namespace` | Change current namespace |
| kens | `kubectl edit namespace` | Edit namespace resource from the default editor |
| kdns | `kubectl describe namespace` | Describe namespace resource in detail |
| kdelns | `kubectl delete namespace` | Delete the namespace. WARNING! This deletes everything in the namespace |
diff --git a/plugins/kubectl/kubectl.plugin.zsh b/plugins/kubectl/kubectl.plugin.zsh
index d509d8795..56135274f 100644
--- a/plugins/kubectl/kubectl.plugin.zsh
+++ b/plugins/kubectl/kubectl.plugin.zsh
@@ -71,7 +71,7 @@ alias kgns='kubectl get namespaces'
alias kens='kubectl edit namespace'
alias kdns='kubectl describe namespace'
alias kdelns='kubectl delete namespace'
-alias kcn='kubectl config set-context $(kubectl config current-context) --namespace'
+alias kcn='kubectl config set-context --current --namespace'
# ConfigMap management
alias kgcm='kubectl get configmaps'
diff --git a/plugins/npm/README.md b/plugins/npm/README.md
index 0b1a2280f..47d153619 100644
--- a/plugins/npm/README.md
+++ b/plugins/npm/README.md
@@ -15,8 +15,10 @@ plugins=(... npm)
| `npmg` | `npm i -g` | Install dependencies globally |
| `npmS` | `npm i -S` | Install and save to dependencies in your package.json |
| `npmD` | `npm i -D` | Install and save to dev-dependencies in your package.json |
+| `npmF` | `npm i -f` | Force install from remote registries ignoring local cache |
| `npmE` | `PATH="$(npm bin)":"$PATH"` | Run command from node_modules folder based on current directory |
| `npmO` | `npm outdated` | Check which npm modules are outdated |
+| `npmU` | `npm update` | Update all the packages listed to the latest version |
| `npmV` | `npm -v` | Check package versions |
| `npmL` | `npm list` | List installed packages |
| `npmL0` | `npm ls --depth=0` | List top-level installed packages |
@@ -25,3 +27,5 @@ plugins=(... npm)
| `npmR` | `npm run` | Run npm scripts |
| `npmP` | `npm publish` | Run npm publish |
| `npmI` | `npm init` | Run npm init |
+| `npmi` | `npm info` | Run npm info |
+| `npmSe` | `npm search` | Run npm search |
diff --git a/plugins/npm/npm.plugin.zsh b/plugins/npm/npm.plugin.zsh
index 87c68f3fb..f7d6d3939 100644
--- a/plugins/npm/npm.plugin.zsh
+++ b/plugins/npm/npm.plugin.zsh
@@ -27,6 +27,9 @@ alias npmS="npm i -S "
# npmd is used by https://github.com/dominictarr/npmd
alias npmD="npm i -D "
+# Force npm to fetch remote resources even if a local copy exists on disk.
+alias npmF='npm i -f'
+
# Execute command from node_modules folder based on current directory
# i.e npmE gulp
alias npmE='PATH="$(npm bin)":"$PATH"'
@@ -34,6 +37,9 @@ alias npmE='PATH="$(npm bin)":"$PATH"'
# Check which npm modules are outdated
alias npmO="npm outdated"
+# Update all the packages listed to the latest version
+alias npmU="npm update"
+
# Check package versions
alias npmV="npm -v"
@@ -57,3 +63,9 @@ alias npmP="npm publish"
# Run npm init
alias npmI="npm init"
+
+# Run npm info
+alias npmi="npm info"
+
+# Run npm search
+alias npmSe="npm search"
diff --git a/plugins/rails/README.md b/plugins/rails/README.md
index 9fb1cecf1..efdb8f8ba 100644
--- a/plugins/rails/README.md
+++ b/plugins/rails/README.md
@@ -21,6 +21,8 @@ plugins=(... rails)
| `rgen`| `rails generate` | Generate boilerplate code |
| `rgm` | `rails generate migration` | Generate a db migration |
| `rp` | `rails plugin` | Run a Rails plugin command |
+| `rr` | `rails routes` | List all defined routes |
+| `rrg` | `rails routes \| grep` | List and filter the defined routes |
| `ru` | `rails runner` | Run Ruby code in the context of Rails |
| `rs` | `rails server` | Launch a web server |
| `rsd` | `rails server --debugger` | Launch a web server with debugger |
@@ -43,8 +45,6 @@ plugins=(... rails)
| `rdsl` | `rake db:schema:load` | Load the database schema |
| `rlc` | `rake log:clear` | Clear Rails logs |
| `rn` | `rake notes` | Search for notes (`FIXME`, `TODO`) in code comments |
-| `rr` | `rake routes` | List all defined routes |
-| `rrg` | `rake routes \| grep` | List and filter the defined routes |
| `rt` | `rake test` | Run Rails tests |
| `rmd` | `rake middleware` | Interact with Rails middlewares |
| `rsts` | `rake stats` | Print code statistics |
diff --git a/plugins/react-native/react-native.plugin.zsh b/plugins/react-native/react-native.plugin.zsh
index b33dedfed..8323c27bd 100644
--- a/plugins/react-native/react-native.plugin.zsh
+++ b/plugins/react-native/react-native.plugin.zsh
@@ -27,6 +27,9 @@ alias rniosxr='react-native run-ios --simulator "iPhone Xʀ"'
alias rnios11='react-native run-ios --simulator "iPhone 11"'
alias rnios11p='react-native run-ios --simulator "iPhone 11 Pro"'
alias rnios11pm='react-native run-ios --simulator "iPhone 11 Pro Max"'
+alias rnios12='react-native run-ios --simulator "iPhone 12"'
+alias rnios12p='react-native run-ios --simulator "iPhone 12 Pro"'
+alias rnios12pm='react-native run-ios --simulator "iPhone 12 Pro Max"'
# iPad
diff --git a/plugins/shell-proxy/proxy.py b/plugins/shell-proxy/proxy.py
index d2e5361cb..97f4cf873 100755
--- a/plugins/shell-proxy/proxy.py
+++ b/plugins/shell-proxy/proxy.py
@@ -9,8 +9,9 @@ user_proxy = os.environ.get("CONFIG_PROXY", os.path.expandvars("$HOME/.config/pr
def get_http_proxy():
- if "DEFAULT_PROXY" in os.environ:
- return os.environ["DEFAULT_PROXY"]
+ default_proxy = os.environ.get("DEFAULT_PROXY")
+ if default_proxy:
+ return default_proxy
if os.path.isfile(user_proxy):
return check_output(user_proxy).decode("utf-8").strip()
raise Exception("Not found, Proxy configuration")
diff --git a/plugins/shell-proxy/shell-proxy.plugin.zsh b/plugins/shell-proxy/shell-proxy.plugin.zsh
index fd0e2fe79..315ade665 100644
--- a/plugins/shell-proxy/shell-proxy.plugin.zsh
+++ b/plugins/shell-proxy/shell-proxy.plugin.zsh
@@ -4,7 +4,7 @@
__PROXY__="${0:A:h}/proxy.py"
proxy() {
- source <("$__PROXY__" "$1")
+ source <(env "DEFAULT_PROXY=$DEFAULT_PROXY" "$__PROXY__" "$1")
}
_proxy() {
diff --git a/plugins/systemadmin/systemadmin.plugin.zsh b/plugins/systemadmin/systemadmin.plugin.zsh
index 08136abda..a77f0069b 100644
--- a/plugins/systemadmin/systemadmin.plugin.zsh
+++ b/plugins/systemadmin/systemadmin.plugin.zsh
@@ -131,7 +131,8 @@ d0() {
# gather external ip address
geteip() {
- curl -s -S https://icanhazip.com
+ curl -s -S -4 https://icanhazip.com
+ curl -s -S -6 https://icanhazip.com
}
# determine local IP address(es)