mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-05 05:03:16 +02:00
Merge 0c17b7866b into 15d051c32b
This commit is contained in:
commit
8217f25532
2 changed files with 21 additions and 0 deletions
4
plugins/makepkg/README.md
Normal file
4
plugins/makepkg/README.md
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
## makepkg
|
||||||
|
**Maintainer**: [AlexTalker](https://github.com/AlexTalker)
|
||||||
|
|
||||||
|
This plug-in adds several [makepkg](https://wiki.archlinux.org/index.php/Makepkg) aliases.
|
||||||
17
plugins/makepkg/makepkg.plugin.zsh
Normal file
17
plugins/makepkg/makepkg.plugin.zsh
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
# Zsh aliases for makepkg, Arch Linux package build tool.
|
||||||
|
if [[ -x `which makepkg` ]]; then
|
||||||
|
alias mpkg='makepkg' # Build package using current sources
|
||||||
|
alias mpkgsy='makepkg -s' # Synchronize sources and build package
|
||||||
|
alias mpkgsr='makepkg -S' # Build sources package(src.tar.xz usually)
|
||||||
|
alias mpkgg='makepkg -g' # Sync sources and generate fresh hash sums for source files.
|
||||||
|
alias mpkgo='makepkg -o' # Only sync sources and unpack them.
|
||||||
|
alias mpkge='makepkg -e' # Use exist sources in ./src
|
||||||
|
alias mpkgre='makepkg -R' # Only repack(use exist files in ./pkg) package
|
||||||
|
alias mpkgf='makepkg -f' # Force rebuild package
|
||||||
|
alias mpkgi='makepkg -i' # Install build package
|
||||||
|
else
|
||||||
|
# Notification if makepkg not availble
|
||||||
|
echo "Did you enable makepkg plugin, but makepkg doesn't exist in your system(or in $PATH)."
|
||||||
|
echo "Please, run `sudo pacman -S base-devel` or disable plugin into your ~/.zshrc"
|
||||||
|
fi
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue