We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1dbef43 commit fc7bdd0Copy full SHA for fc7bdd0
1 file changed
rc/shell/functions
@@ -90,8 +90,15 @@ function package_manager_command() {
90
91
sudo printf ''
92
93
- if [[ "${OPERATION}" == 'install' ]] \
94
- || [[ "${OPERATION}" == '-S' ]]; then
+ if [[ "${OPERATION}" == 'info' ]] \
+ || [[ "${OPERATION}" == '-Qi' ]]; then
95
+ if [[ "${PACKAGE_MANAGER_FAMILY}" == 'apt' ]]; then
96
+ ${PACKAGE_MANAGER_COMMAND} info "${@}"
97
+ elif [[ "${PACKAGE_MANAGER_FAMILY}" == 'pacman' ]]; then
98
+ ${PACKAGE_MANAGER_COMMAND} -Qi "${@}"
99
+ fi
100
+ elif [[ "${OPERATION}" == 'install' ]] \
101
+ || [[ "${OPERATION}" == '-S' ]]; then
102
if [[ "${PACKAGE_MANAGER_FAMILY}" == 'apt' ]]; then
103
${PACKAGE_MANAGER_COMMAND} install "${@}"
104
elif [[ "${PACKAGE_MANAGER_FAMILY}" == 'pacman' ]]; then
0 commit comments