mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-23 22:30:07 +00:00
Add gentoolinux plugin
This commit is contained in:
parent
d646884add
commit
6a88d7a8fb
2 changed files with 128 additions and 0 deletions
77
plugins/gentoolinux/README.md
Normal file
77
plugins/gentoolinux/README.md
Normal file
|
@ -0,0 +1,77 @@
|
||||||
|
# Gentoo Linux plugin
|
||||||
|
|
||||||
|
This plugin adds some aliases and functions to work with Gentoo Linux.
|
||||||
|
|
||||||
|
To use it, add `gentoolinux` to the plugins array in your zshrc file:
|
||||||
|
|
||||||
|
```zsh
|
||||||
|
plugins=(... gentoolinux)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Features
|
||||||
|
### EMERGE
|
||||||
|
|
||||||
|
| Alias | Command | Description |
|
||||||
|
|-------------|--------------------------------------|---------------------------------------------------------------------|
|
||||||
|
| emin | `sudo emerge <atom>` | Install the <atom> packet in the system |
|
||||||
|
| eminsl | `sudo emerge -K <atom>` | Install the <atom> packet using a local binary |
|
||||||
|
| eminsr | `sudo emerge -G <atom>` | Install the <atom> packet using a remote binary |
|
||||||
|
| emre | `sudo emerge -C <atom>` | Uninstall the <atom> packet in the system |
|
||||||
|
| emsearch | `emerge -s <atom>` | Search the <atom> packet in the local repository |
|
||||||
|
| emsync | `sudo emerge --sync` | Sync the local repository with the remote repository |
|
||||||
|
| emup | `sudo emerge -aDuN world` | Update the packages in the local system |
|
||||||
|
| emclean | `sudo emerge --depclean` | Delete the unwanted software |
|
||||||
|
### PORTAGEQ
|
||||||
|
|
||||||
|
| Alias | Command | Description |
|
||||||
|
|-------------|--------------------------------------|---------------------------------------------------------------------|
|
||||||
|
| pocolor | `portageq colormap ` | Display the color.map as environment variables |
|
||||||
|
| podist | `portageq distdir ` | Returns the DISTDIR path |
|
||||||
|
| povar | `portageq envvar ` | Returns a specific environment variable as exists prior to ebuild.sh|
|
||||||
|
| pomirror | `portageq gentoo_mirrors` | Returns the mirrors set to use in the portage configuration |
|
||||||
|
| poorphan | `portageq --orphaned ` | Match only orphaned (maintainer-needed) packages |
|
||||||
|
### GENLOP
|
||||||
|
|
||||||
|
| Alias | Command | Description |
|
||||||
|
|-------------|--------------------------------------|---------------------------------------------------------------------|
|
||||||
|
| genstory | `sudo genlop -l` | Show full merge history |
|
||||||
|
| geneta | `sudo genlop -c` | Display the currently compiling packages (if any) |
|
||||||
|
| genweta | `watch -ct -n 1 sudo genlop -c` | Display the currently compiling packages (if any), with refresh |
|
||||||
|
| geninfo | `sudo genlop -i <atom>` | Extra infos for the selected <atom> (build specific USE, CFLAGS) |
|
||||||
|
| genustory | `sudo genlop -u` | Show when packages have been unmerged |
|
||||||
|
| genstorytime| `sudo genlop -t <atom>` | Calculate merge time for the specific <atom(s)> |
|
||||||
|
### QLOP
|
||||||
|
|
||||||
|
| Alias | Command | Description |
|
||||||
|
|-------------|--------------------------------------|---------------------------------------------------------------------|
|
||||||
|
| qsummary | `sudo qlop -c` | Print summary of average merges |
|
||||||
|
| qtime | `sudo qlop -t` | Print time taken to complete action |
|
||||||
|
| qavg | `sudo qlop -a` | Print average time taken to complete action |
|
||||||
|
| qhum | `sudo qlop -H` | Print elapsed time in human readable format |
|
||||||
|
| qmachine | `sudo qlop -M` | Print start/elapsed time as seconds with no formatting |
|
||||||
|
| qmstory | `sudo qlop -m` | Show merge history |
|
||||||
|
| qustory | `sudo qlop -u` | Show unmerge history |
|
||||||
|
| qastory | `sudo qlop -U` | Show autoclean unmerge history |
|
||||||
|
| qsstory | `sudo qlop -s` | Show sync histroy |
|
||||||
|
| qend | `sudo qlop -e` | Report time at which the operation finished (iso started) |
|
||||||
|
| qrun | `sudo qlop -r` | Show current emerging packages |
|
||||||
|
### ECLEAN
|
||||||
|
|
||||||
|
| Alias | Command | Description |
|
||||||
|
|-------------|--------------------------------------|---------------------------------------------------------------------|
|
||||||
|
| distclean | `sudo eclean --deep distfiles` | Clean files from /usr/portage/distfiles |
|
||||||
|
| pkgclean | `sudo eclean-pkg` | Clean files from /usr/portage/packages |
|
||||||
|
### EUSE
|
||||||
|
|
||||||
|
| Alias | Command | Description |
|
||||||
|
|-------------|--------------------------------------|---------------------------------------------------------------------|
|
||||||
|
| newuse | `sudo euse -E <use>` | Add th <use> flag in /etc/portage/make.conf |
|
||||||
|
| deluse | `sudo euse -D <use>` | Delete th <use> flag in /etc/portage/make.conf |
|
||||||
|
### VIM
|
||||||
|
|
||||||
|
| Alias | Command | Description |
|
||||||
|
|-------------|--------------------------------------|---------------------------------------------------------------------|
|
||||||
|
| make.conf | `sudo vim /etc/portage/make.conf` | Open the make.conf configuration file |
|
||||||
|
| package.mask| `sudo vim /etc/portage/package.mask` | Open the package.mask configuration file |
|
||||||
|
| package.use | `sudo vim /etc/portage/package.use` | Open the package.use configuration file |
|
||||||
|
| repos.conf | `sudo vim /etc/portage/repos.conf` | Open the repos.conf configuration file |
|
51
plugins/gentoolinux/gentoolinux.plugin.zsh
Normal file
51
plugins/gentoolinux/gentoolinux.plugin.zsh
Normal file
|
@ -0,0 +1,51 @@
|
||||||
|
# EMERGE
|
||||||
|
alias emin='sudo emerge '
|
||||||
|
alias eminsl='sudo emerge -K '
|
||||||
|
alias eminsr='sudo emerge -G '
|
||||||
|
alias emre='sudo emerge -C '
|
||||||
|
alias emsearch='emerge -s '
|
||||||
|
alias emsync='sudo emerge --sync '
|
||||||
|
alias emup='sudo emerge -aDuN world '
|
||||||
|
alias emclean='sudo emerge --depclean '
|
||||||
|
|
||||||
|
# PORTAGEQ
|
||||||
|
alias pocolor='portageq colormap '
|
||||||
|
alias podist='portageq distdir '
|
||||||
|
alias povar='portageq envvar '
|
||||||
|
alias pomirror='portageq gentoo_mirrors'
|
||||||
|
alias poorphan='portageq --orphaned '
|
||||||
|
|
||||||
|
# GENLOP
|
||||||
|
alias genstroy='sudo genlop -l '
|
||||||
|
alias geneta='sudo genlop -c '
|
||||||
|
alias genweta='watch -ct -n 1 sudo genlop -c '
|
||||||
|
alias geninfo='sudo genlop -i '
|
||||||
|
alias genustory='sudo genlop -u '
|
||||||
|
alias genstorytime='sudo genlop -t '
|
||||||
|
|
||||||
|
# QLOP
|
||||||
|
alias qsummary='sudo qlop -c '
|
||||||
|
alias qtime='sudo qlop -t '
|
||||||
|
alias qavg='sudo qlop -a '
|
||||||
|
alias qhum='sudo qlop -H '
|
||||||
|
alias qmachine='sudo qlop -M '
|
||||||
|
alias qmstory='sudo qlop -m '
|
||||||
|
alias qustory='sudo qlop -u '
|
||||||
|
alias qastory='sudo qlop -U '
|
||||||
|
alias qsstory='sudo qlop -s '
|
||||||
|
alias qend='sudo qlop -e '
|
||||||
|
alias qrun='sudo qlop -r '
|
||||||
|
|
||||||
|
# ECLEAN
|
||||||
|
alias distclean='sudo eclean --deep distfiles '
|
||||||
|
alias pkgclean='sudo eclean-pkg '
|
||||||
|
|
||||||
|
# EUSE
|
||||||
|
alias newuse='sudo euse -E '
|
||||||
|
alias deluse='sudo euse -D '
|
||||||
|
|
||||||
|
# VIM
|
||||||
|
alias make.conf='sudo vim /etc/portage/make.conf '
|
||||||
|
alias package.mask='sudo vim /etc/portage/package.mask '
|
||||||
|
alias package.use='sudo vim /etc/portage/package.use '
|
||||||
|
alias repos.conf='sudo vim /etc/portage/repos.conf '
|
Loading…
Reference in a new issue