my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

61 lines
6.4 KiB

3 years ago
  1. # Ubuntu plugin
  2. This plugin adds completions and aliases for [Ubuntu](https://www.ubuntu.com/).
  3. To use it, add `ubuntu` to the plugins array in your zshrc file:
  4. ```zsh
  5. plugins=(... ubuntu)
  6. ```
  7. ## Aliases
  8. Commands that use `$APT` will use `apt` if installed or defer to `apt-get` otherwise.
  9. | Alias | Command | Description |
  10. |---------|--------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------|
  11. | age | `sudo $APT` | Run apt-get with sudo |
  12. | acs | `apt-cache search` | Search the apt-cache with the specified criteria |
  13. | acsp | `apt-cache showpkg` | Shows information about the listed packages |
  14. | acp | `apt-cache policy` | Display the package source priorities |
  15. | afs | `apt-file search --regexp` | Perform a regular expression apt-file search |
  16. | afu | `sudo apt-file update` | Generates or updates the apt-file package database |
  17. | aga | `sudo $APT autoclean` | Clears out the local repository of retrieved package files that can no longer be downloaded |
  18. | agb | `sudo $APT build-dep <source_pkg>` | Installs/Removes packages to satisfy the dependencies of a specified build pkg |
  19. | agc | `sudo $APT clean` | Clears out the local repository of retrieved package files leaving everything from the lock files |
  20. | agd | `sudo $APT dselect-upgrade` | Follows dselect choices for package installation |
  21. | agi | `sudo $APT install <pkg>` | Install the specified package |
  22. | agli | `apt list --installed` | List the installed packages |
  23. | aglu | `sudo apt-get -u upgrade --assume-no` | Run an apt-get upgrade assuming no to all prompts |
  24. | agp | `sudo $APT purge <pkg>` | Remove a package including any configuration files |
  25. | agr | `sudo $APT remove <pkg>` | Remove a package |
  26. | ags | `$APT source <pkg>` | Fetch the source for the specified package |
  27. | agu | `sudo $APT update` | Update package list |
  28. | agud | `sudo $APT update && sudo $APT dist-upgrade` | Update packages list and perform a distribution upgrade |
  29. | agug | `sudo $APT upgrade` | Upgrade available packages |
  30. | agar | `sudo $APT autoremove` | Remove automatically installed packages no longer needed |
  31. | aguu | `sudo $APT update && sudo $APT upgrade` | Update packages list and upgrade available packages |
  32. | allpkgs | `dpkg --get-selections \| grep -v deinstall` | Print all installed packages |
  33. | kclean | `sudo aptitude remove -P ?and(~i~nlinux-(ima\|hea) ?not(~n$(uname -r)))` |Remove ALL kernel images and headers EXCEPT the one in use |
  34. | mydeb | `time dpkg-buildpackage -rfakeroot -us -uc` | Create a basic .deb package |
  35. | ppap | `sudo ppa-purge <ppa>` | Remove the specified PPA |
  36. ## Functions
  37. | Function | Usage |Description |
  38. |-------------------|---------------------------------------|--------------------------------------------------------------------------|
  39. | aar | `aar ppa:xxxxxx/xxxxxx [packagename]` | apt-add-repository with automatic install/upgrade of the desired package |
  40. | apt-history | `apt-history <action>` | Prints the Apt history of the specified action |
  41. | apt-list-packages | `apt-list-packages` | List packages by size |
  42. | kerndeb | `kerndeb` | Kernel-package building shortcut |
  43. ## Authors:
  44. - [@AlexBio](https://github.com/AlexBio)
  45. - [@dbb](https://github.com/dbb)
  46. - [@Mappleconfusers](https://github.com/Mappleconfusers)
  47. - [@trinaldi](https://github.com/trinaldi)
  48. - [Nicolas Jonas](https://nextgenthemes.com)
  49. - [@loctauxphilippe](https://github.com/loctauxphilippe)
  50. - [@HaraldNordgren](https://github.com/HaraldNordgren)