Skip to content

Commit fc7bdd0

Browse files
committed
Support for info in yeet
1 parent 1dbef43 commit fc7bdd0

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

rc/shell/functions

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,15 @@ function package_manager_command() {
9090

9191
sudo printf ''
9292

93-
if [[ "${OPERATION}" == 'install' ]] \
94-
|| [[ "${OPERATION}" == '-S' ]]; then
93+
if [[ "${OPERATION}" == 'info' ]] \
94+
|| [[ "${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
95102
if [[ "${PACKAGE_MANAGER_FAMILY}" == 'apt' ]]; then
96103
${PACKAGE_MANAGER_COMMAND} install "${@}"
97104
elif [[ "${PACKAGE_MANAGER_FAMILY}" == 'pacman' ]]; then

0 commit comments

Comments
 (0)