forked from sorin-ionescu/prezto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Sorin Ionescu <sorin.ionescu@gmail.com>
- Loading branch information
1 parent
904c944
commit b6efdc1
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
DNF | ||
=== | ||
|
||
Defines [dnf][1] aliases. | ||
|
||
Aliases | ||
------- | ||
|
||
- `dnfc` removes package(s) and leaves. | ||
- `dnfi` installs package(s). | ||
- `dnfh` displays history. | ||
- `dnfl` lists packages. | ||
- `dnfL` lists installed packages. | ||
- `dnfq` displays package information. | ||
- `dnfr` removes package(s). | ||
- `dnfs` searches for a package. | ||
- `dnfu` updates packages. | ||
- `dnfU` upgrates packages. | ||
|
||
Authors | ||
------- | ||
|
||
*The authors of this module should be contacted via the [issue tracker][2].* | ||
|
||
- [Sorin Ionescu](https://github.com/sorin-ionescu) | ||
|
||
[1]: https://fedoraproject.org/wiki/Features/DNF | ||
[2]: https://github.com/sorin-ionescu/prezto/issues | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# | ||
# Defines dnf aliases. | ||
# | ||
# Authors: | ||
# FireWave <firewave@free.fr> | ||
# Sorin Ionescu <sorin.ionescu@gmail.com> | ||
# | ||
|
||
# Return if requirements are not found. | ||
if (( ! $+commands[dnf] )); then | ||
return 1 | ||
fi | ||
|
||
# | ||
# Aliases | ||
# | ||
|
||
alias dnfc='sudo dnf clean all' # Cleans the cache. | ||
alias dnfh='dnf history' # Displays history. | ||
alias dnfi='sudo dnf install' # Installs package(s). | ||
alias dnfl='dnf list' # Lists packages. | ||
alias dnfL='dnf list installed' # Lists installed packages. | ||
alias dnfq='dnf info' # Displays package information. | ||
alias dnfr='sudo dnf remove' # Removes package(s). | ||
alias dnfs='dnf search' # Searches for a package. | ||
alias dnfu='sudo dnf update' # Updates packages. | ||
alias dnfU='sudo dnf upgrade' # Upgrades packages. | ||
|