{"id":18011487,"url":"https://github.com/tmiland/oh-my-zsh-debian","last_synced_at":"2026-04-29T17:32:29.907Z","repository":{"id":70815530,"uuid":"562612952","full_name":"tmiland/oh-my-zsh-debian","owner":"tmiland","description":"This plugin provides Debian-related aliases and functions for zsh.","archived":false,"fork":false,"pushed_at":"2022-11-06T21:48:39.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-09T23:27:55.131Z","etag":null,"topics":["aliases","debian","oh-my-zsh","oh-my-zsh-plugin"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tmiland.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-06T21:37:17.000Z","updated_at":"2022-11-06T21:45:09.000Z","dependencies_parsed_at":"2023-09-16T06:33:17.013Z","dependency_job_id":null,"html_url":"https://github.com/tmiland/oh-my-zsh-debian","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmiland%2Foh-my-zsh-debian","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmiland%2Foh-my-zsh-debian/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmiland%2Foh-my-zsh-debian/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmiland%2Foh-my-zsh-debian/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmiland","download_url":"https://codeload.github.com/tmiland/oh-my-zsh-debian/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247189174,"owners_count":20898641,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aliases","debian","oh-my-zsh","oh-my-zsh-plugin"],"created_at":"2024-10-30T03:10:50.123Z","updated_at":"2026-04-29T17:32:29.841Z","avatar_url":"https://github.com/tmiland.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# debian\n\n---\n\n## Forked from [ohmyzsh/ohmyzsh/tree/master/plugins/debian](https://github.com/ohmyzsh/ohmyzsh/tree/master/plugins/debian)\n\nWhy? Because: [BREAKING CHANGE: This alias needs to be removed because is shadowing `ar` archiver.](https://github.com/ohmyzsh/ohmyzsh/commit/818f3de1fa6588a94bf207766a811992e301acf1)\n\nI added a pull request with suggested fixes: [Revert \"fix(debian)!: remove ar alias\" and add apr alias](https://github.com/ohmyzsh/ohmyzsh/pull/11319)\n\nBut unfortunately i received this [reply](https://github.com/ohmyzsh/ohmyzsh/pull/11319#issuecomment-1304877715):\n\n  \u003e Hi! We think that bundling aliases that use `sudo` it's not the best option nowadays, it's one of the reasons we removed it. This kind of aliases are better for the `zshrc`!\n  \u003e Thanks for your contribution 😊 \n\nSo, to keep these aliases, add to:\n\n```\n~/.oh-my-zsh/custom/plugins/oh-my-zsh-debian\n```\n\nFrom example file:\n\n  \u003e Add your own custom plugins in the custom/plugins directory. Plugins placed\n  \u003e here will override ones with the same name in the main plugins directory.\n\n### To install:\n\n```\ngit clone https://github.com/tmiland/oh-my-zsh-debian.git ~/.oh-my-zsh/custom/plugins/oh-my-zsh-debian\n```\n\n### Note:\n\nThe `ar` command has been changed to `apr` (!)\n\n---\n\nThis plugin provides Debian-related aliases and functions for zsh.\n\nTo use it add `debian` to the plugins array in your zshrc file.\n\n```zsh\nplugins=(... debian)\n```\n\n## Settings\n\n- `$apt_pref`: use aptitude or apt if installed, fallback is apt-get.\n- `$apt_upgr`: use upgrade or safe-upgrade (for aptitude).\n\nSet `$apt_pref` and `$apt_upgr` to whatever command you want (before sourcing Oh My Zsh) to override this behavior.\n\n## Common Aliases\n\n| Alias  | Command                                                                | Description                                                |\n| ------ | ---------------------------------------------------------------------- | ---------------------------------------------------------- |\n| `age`  | `apt-get`                                                              | Command line tool for handling packages                    |\n| `api`  | `aptitude`                                                             | Same functionality as `apt-get`, provides extra options    |\n| `acs`  | `apt-cache search`                                                     | Command line tool for searching apt software package cache |\n| `aps`  | `aptitude search`                                                      | Searches installed packages using aptitude                 |\n| `as`   | `aptitude -F '* %p -\u003e %d \\n(%v/%V)' --no-gui --disable-columns search` | Print searched packages using a custom format              |\n| `afs`  | `apt-file search --regexp`                                             | Search file in packages                                    |\n| `asrc` | `apt-get source`                                                       | Fetch source packages through `apt-get`                    |\n| `app`  | `apt-cache policy`                                                     | Displays priority of package sources                       |\n\n## Superuser Operations Aliases\n\n| Alias    | Command                                                                                | Description                                                                                 |\n| -------- | -------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |\n| `aac`    | `sudo $apt_pref autoclean`                                                             | Clears out the local repository of retrieved package files                                  |\n| `aar`    | `sudo $apt_pref autoremove`                                                            | Removes packages installed automatically that are no longer needed                          |\n| `abd`    | `sudo $apt_pref build-dep`                                                             | Installs all dependencies for building packages                                             |\n| `ac`     | `sudo $apt_pref clean`                                                                 | Clears out the local repository of retrieved package files except lock files                |\n| `ad`     | `sudo $apt_pref update`                                                                | Updates the package lists for upgrades for packages                                         |\n| `adg`    | `sudo $apt_pref update \u0026\u0026 sudo $apt_pref $apt_upgr`                                    | Update and upgrade packages                                                                 |\n| `ads`    | `sudo apt-get dselect-upgrade`                                                         | Installs packages from list and removes all not in the list                                 |\n| `adu`    | `sudo $apt_pref update \u0026\u0026 sudo $apt_pref dist-upgrade`                                 | Smart upgrade that handles dependencies                                                     |\n| `afu`    | `sudo apt-file update`                                                                 | Update the files in packages                                                                |\n| `ai`     | `sudo $apt_pref install`                                                               | Command-line tool to install package                                                        |\n| `ail`    | `sed -e 's/  */ /g' -e 's/ *//' \\| cut -s -d ' ' -f 1 \\| xargs sudo $apt_pref install` | Install all packages given on the command line while using only the first word of each line |\n| `alu`    | `sudo apt update \u0026\u0026 apt list -u \u0026\u0026 sudo apt upgrade`                                   | Update, list and upgrade packages                                                           |\n| `ap`     | `sudo $apt_pref purge`                                                                 | Removes packages along with configuration files                                             |\n| `apr`     | `sudo $apt_pref remove`                                                                | Removes packages, keeps the configuration files                                             |\n| `au`     | `sudo $apt_pref $apt_upgr`                                                             | Install package upgrades                                                                    |\n| `di`     | `sudo dpkg -i`                                                                         | Install all .deb files in the current directory                                             |\n| `dia`    | `sudo dpkg -i ./*.deb`                                                                 | Install all .deb files in the current directory                                             |\n| `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                                  |\n\n## Aliases - Commands using `su`\n\n| Alias | Command                                                   |\n| ----- | --------------------------------------------------------- |\n| `aac` | `su -ls \"$apt_pref autoclean\" root`                       |\n| `aar` | `su -ls \"$apt_pref autoremove\" root`                      |\n| `ac`  | `su -ls \"$apt_pref clean\" root`                           |\n| `ad`  | `su -lc \"$apt_pref update\" root`                          |\n| `adg` | `su -lc \"$apt_pref update \u0026\u0026 aptitude $apt_upgr\" root`    |\n| `adu` | `su -lc \"$apt_pref update \u0026\u0026 aptitude dist-upgrade\" root` |\n| `afu` | `su -lc \"apt-file update\"`                                |\n| `au`  | `su -lc \"$apt_pref $apt_upgr\" root`                       |\n| `dia` | `su -lc \"dpkg -i ./*.deb\" root`                           |\n\n## Miscellaneous Aliases\n\n| Alias     | Command                                        | Description                    |\n| --------- | ---------------------------------------------- | ------------------------------ |\n| `allpkgs` | `aptitude search -F \"%p\" --disable-columns ~i` | Display all installed packages |\n| `mydeb`   | `time dpkg-buildpackage -rfakeroot -us -uc`    | Create a basic .deb package    |\n\n## Functions\n\n| Function            | Description                                                     |\n| ------------------- | --------------------------------------------------------------- |\n| `apt-copy`          | Create a simple script that can be used to 'duplicate' a system |\n| `apt-history`       | Displays apt history for a command                              |\n| `apt-list-packages` | List packages by size                                           |\n| `kerndeb`           | Builds kernel packages                                          |\n\n## Authors\n\n- [@AlexBio](https://github.com/AlexBio)\n- [@dbb](https://github.com/dbb)\n- [@Mappleconfusers](https://github.com/Mappleconfusers)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmiland%2Foh-my-zsh-debian","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmiland%2Foh-my-zsh-debian","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmiland%2Foh-my-zsh-debian/lists"}