diff options
author | Marvin Borner | 2020-03-16 23:33:42 +0100 |
---|---|---|
committer | Marvin Borner | 2020-03-16 23:33:42 +0100 |
commit | 0e9ddbb0bf0cd34500155ea4b03de2e2a38d8ab2 (patch) | |
tree | 719da1c7fe5dabb872fe9ff1582c39b55ccd488e /.oh-my-zsh/plugins/macports | |
parent | e5d38956336ab1be954bdbd12808c5f98f8bd925 (diff) |
Well I'm using Arch again
Diffstat (limited to '.oh-my-zsh/plugins/macports')
-rw-r--r-- | .oh-my-zsh/plugins/macports/README.md | 21 | ||||
-rw-r--r-- | .oh-my-zsh/plugins/macports/_port | 89 | ||||
-rw-r--r-- | .oh-my-zsh/plugins/macports/macports.plugin.zsh | 6 |
3 files changed, 0 insertions, 116 deletions
diff --git a/.oh-my-zsh/plugins/macports/README.md b/.oh-my-zsh/plugins/macports/README.md deleted file mode 100644 index ded823f..0000000 --- a/.oh-my-zsh/plugins/macports/README.md +++ /dev/null @@ -1,21 +0,0 @@ -# Macports plugin - -This plugin adds completion for the package manager [Macports](https://macports.com/), -as well as some aliases for common Macports commands. - -To use it, add `macports` to the plugins array in your zshrc file: - -```zsh -plugins=(... macports) -``` - -## Aliases - -| Alias | Command | Description | -|-------|------------------------------------|--------------------------------------------------------------| -| pc | `sudo port clean --all installed` | Clean up intermediate installation files for installed ports | -| pi | `sudo port install` | Install package given as argument | -| psu | `sudo port selfupdate` | Update ports tree with MacPorts repository | -| puni | `sudo port uninstall inactive` | Uninstall inactive ports | -| puo | `sudo port upgrade outdated` | Upgrade ports with newer versions available | -| pup | `psu && puo` | Update ports tree, then upgrade ports to newest versions | diff --git a/.oh-my-zsh/plugins/macports/_port b/.oh-my-zsh/plugins/macports/_port deleted file mode 100644 index 06d7fb4..0000000 --- a/.oh-my-zsh/plugins/macports/_port +++ /dev/null @@ -1,89 +0,0 @@ -#compdef port - -local subcmds - -# we cache the list of ports -# we shall use some cache policy to avoid problems with new ports -if (( ! $+portlist )); then - portlist=($(port echo all; echo "all current active inactive installed uninstalled outdated")) -fi - -subcmds=( -'activate' -'archive' -'build' -'cat' -'clean' -'configure' -'contents' -'deactivate' -'dependents' -'deps' -'destroot' -'dir' -'distcheck' -'distclean' -'dmg' -'echo' -'edit' -'extract' -'fetch' -'file' -'help' -'info' -'install' -'installed' -'list' -'livecheck' -'location' -'mpkg' -'outdated' -'patch' -'pkg' -'provides' -'rpmpackage' -'search' -'selfupdate' -'sync' -'test' -'unarchive' -'uninstall' -'upgrade' -'variants' -'version' -) - -_arguments -C \ -'-v[verbose mode (generate verbose messages)]' \ -'-d[debug mode (generate debugging messages)]' \ -'-q[quiet mode (suppress messages)]' \ -'-D[specify portdir]' \ -'-k[keep mode (do not autoclean after install)]' \ -'-n[dont follow dependencies in upgrade (only for upgrading)]' \ -'-a[upgrade all installed ports (only for upgrading)]' \ -'-u[uninstall non-active ports when upgrading and uninstalling]' \ -'-f[force mode (ignore state file)]' \ -'-s[source-only mode]' \ -'-b[binary-only mode]' \ -'-o[honor state files older than Portfile]' \ -'*::command:->command' \ -&& return 0 - -case $state in - command) - if ((CURRENT == 1)); then - state=subcommands - else - state=portname - fi - ;; -esac - -case $state in - subcommands) - _describe -t commands 'port commands' subcmds - ;; - portname) - _describe -t commands 'available ports' portlist - ;; -esac diff --git a/.oh-my-zsh/plugins/macports/macports.plugin.zsh b/.oh-my-zsh/plugins/macports/macports.plugin.zsh deleted file mode 100644 index d1fde30..0000000 --- a/.oh-my-zsh/plugins/macports/macports.plugin.zsh +++ /dev/null @@ -1,6 +0,0 @@ -alias pc="sudo port clean --all installed" -alias pi="sudo port install" -alias psu="sudo port selfupdate" -alias puni="sudo port uninstall inactive" -alias puo="sudo port upgrade outdated" -alias pup="psu && puo" |