aliases/apt: use `_command_exists`
parent
88d66bbfca
commit
0ad1af8306
|
|
@ -1,4 +1,4 @@
|
||||||
#!/bin/bash
|
# shellcheck shell=bash
|
||||||
#
|
#
|
||||||
# -binaryanomaly
|
# -binaryanomaly
|
||||||
|
|
||||||
|
|
@ -8,7 +8,8 @@ about-alias 'Apt and dpkg aliases for Ubuntu and Debian distros.'
|
||||||
# set apt aliases
|
# set apt aliases
|
||||||
function _set_pkg_aliases()
|
function _set_pkg_aliases()
|
||||||
{
|
{
|
||||||
if [ -x $(which apt) ]; then
|
if _command_exists apt
|
||||||
|
then
|
||||||
alias apts='apt-cache search'
|
alias apts='apt-cache search'
|
||||||
alias aptshow='apt-cache show'
|
alias aptshow='apt-cache show'
|
||||||
alias aptinst='sudo apt-get install -V'
|
alias aptinst='sudo apt-get install -V'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue