oh-my-bash/aliases
kayos@tcp.direct c2703e0e81
Formatting
2023-03-11 00:04:23 -08:00
..
README.md aliases: Add Terraform aliases (#367) 2022-11-06 12:11:39 +09:00
chmod.aliases.sh Formatting 2023-03-11 00:04:23 -08:00
debian.aliases.bash aliases: Add "debian" aliases 2022-09-29 19:45:37 +09:00
general.aliases.sh Formatting 2023-03-11 00:04:23 -08:00
ls.aliases.sh Formatting 2023-03-11 00:04:23 -08:00
misc.aliases.sh Formatting 2023-03-11 00:04:23 -08:00
package-manager.aliases.bash aliases/package-manager: Introduce OMB_USE_SUDO and OMB_ALIAS_PACKAGE_MANAGER_SUDO 2022-02-22 18:43:38 +09:00
terraform.aliases.sh aliases: Add Terraform aliases (#367) 2022-11-06 12:11:39 +09:00

aliases

alias:debian

Shorted aliases for most used Debian specific commands. To activate it, add debian to plugins(...) in your .bashrc file:

plugins=(... debian)

Basic Commands

Alias Command
apup sudo apt update
apug sudo apt upgrade
apuu sudo apt update && sudo apt upgrade
apfu sudo apt full-upgrade
apin sudo apt install
apri sudo apt install --reinstall
aprm sudo apt remove
apur sudo apt purge
apse apt search
apdl apt-get download

APT Maintainance & Diagnostic Commands

Alias Command
apar sudo apt autoremove
apcl sudo apt-get autoclean
apesr sudo apt edit-sources
apsh apt show
aphst cat /var/log/apt/history.log | less
drcf sudo dpkg-reconfigure

APT Source & Building Commands

Alias Command
apsc apt-get source
apbd sudo apt build-deb

Debian's update-* commands

Alias Command
upgrb sudo update-grub
uirfs sudo update-initramfs -u

alias:package-manager

This plugin provides the set of aliases that can be used to control package managers. Here is the list of the supported aliases for each package manager. You can find the details of each alias in the source package-manager.aliases.bash.

  • emerge (Portage Enoch Merge) ... em, es, esync, eb, er, ers, emfu, elip
  • cave (Paludis Cave) ... cave, cr, cui, cs, cli
  • apt (Advanced Packaging Tool) ... apt, aptfu, apti, apts, aptr, aptar, aptli
  • dpkg (Debian Package) ... dpkg

The command to use to call these package manager can be specified in the variable OMB_ALIAS_PACKAGE_MANAGER_SUDO. By default, sudo is used when the current use is not root and the command sudo is available.

# Use sudo to run the package manager
OMB_ALIAS_PACKAGE_MANAGER_SUDO=sudo

# Do not use sudo but directly run the package manager
OMB_ALIAS_PACKAGE_MANAGER_SUDO=

alias:terraform

Alias Command
t terraform
tinit terraform init
tplan terraform plan
tapply terraform apply
tfmt terraform fmt