diff options
Diffstat (limited to 'zsh/oh-my-zsh/plugins/yum')
-rw-r--r-- | zsh/oh-my-zsh/plugins/yum/README.md | 27 | ||||
-rw-r--r-- | zsh/oh-my-zsh/plugins/yum/yum.plugin.zsh | 16 |
2 files changed, 43 insertions, 0 deletions
diff --git a/zsh/oh-my-zsh/plugins/yum/README.md b/zsh/oh-my-zsh/plugins/yum/README.md new file mode 100644 index 0000000..fec5849 --- /dev/null +++ b/zsh/oh-my-zsh/plugins/yum/README.md @@ -0,0 +1,27 @@ +# Yum plugin + +This plugin adds useful aliases for common [Yum](http://yum.baseurl.org/) commands. + +To use it, add `yum` to the plugins array in your zshrc file: + +```zsh +plugins=(... yum) +``` + +## Aliases + +| Alias | Command | Description | +|-------|-----------------------------------|------------------------------| +| ys | `yum search` | Search package | +| yp | `yum info` | Show package info | +| yl | `yum list` | List packages | +| ygl | `yum grouplist` | List package groups | +| yli | `yum list installed` | Print all installed packages | +| ymc | `yum makecache` | Rebuild the yum package list | +| yu | `sudo yum update` | Upgrade packages | +| yi | `sudo yum install` | Install package | +| ygi | `sudo yum groupinstall` | Install package group | +| yr | `sudo yum remove` | Remove package | +| ygr | `sudo yum groupremove` | Remove pagage group | +| yrl | `sudo yum remove --remove-leaves` | Remove package and leaves | +| yc | `sudo yum clean all` | Clean yum cache | diff --git a/zsh/oh-my-zsh/plugins/yum/yum.plugin.zsh b/zsh/oh-my-zsh/plugins/yum/yum.plugin.zsh new file mode 100644 index 0000000..d365711 --- /dev/null +++ b/zsh/oh-my-zsh/plugins/yum/yum.plugin.zsh @@ -0,0 +1,16 @@ +## Aliases + +alias ys="yum search" # search package +alias yp="yum info" # show package info +alias yl="yum list" # list packages +alias ygl="yum grouplist" # list package groups +alias yli="yum list installed" # print all installed packages +alias ymc="yum makecache" # rebuilds the yum package list + +alias yu="sudo yum update" # upgrade packages +alias yi="sudo yum install" # install package +alias ygi="sudo yum groupinstall" # install package group +alias yr="sudo yum remove" # remove package +alias ygr="sudo yum groupremove" # remove pagage group +alias yrl="sudo yum remove --remove-leaves" # remove package and leaves +alias yc="sudo yum clean all" # clean cache
\ No newline at end of file |