oh-my-bash/aliases
2022-09-16 20:17:42 +09:00
..
chmod.aliases.sh refactor: Normalize shebang of scripts to source 2022-01-15 19:00:35 +09:00
general.aliases.sh aliases/general(cp,mv,mkdir): Fix command-not-found by expanded aliases in functions 2022-09-16 20:17:42 +09:00
ls.aliases.sh refactor: Normalize shebang of scripts to source 2022-01-15 19:00:35 +09:00
misc.aliases.sh aliases/misc: Use "_omb_util_binary_exists" 2022-02-22 18:50:09 +09: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
README.md aliases/README: Describe the alias module "package-manager" 2022-02-22 18:43:38 +09:00

aliases

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=