aliases/misc: Use "_omb_util_binary_exists"

This commit is contained in:
Koichi Murase 2022-02-05 23:53:08 +09:00
parent 6641299075
commit bc12b82574

View File

@ -115,6 +115,6 @@ alias apacheLogs="less +F /var/log/apache2/error_log" # Apachelogs: Show
# Outputs List of Loadable Modules (llm) for current kernel
alias llm="find /lib/modules/$(uname -r) -type f -name '*.ko*'"
# Used for piping to remote pastebin from cmdline to generate a url
[ -x "$(command -v curl)" ] && ix() { curl -n -F 'f:1=<-' http://ix.io ; }
_omb_util_binary_exists curl && ix() { curl -n -F 'f:1=<-' http://ix.io ; }
# Used for piping to clipboard
[ -x "$(command -v xclip)" ] && alias xcopy="xclip -se c"
_omb_util_binary_exists xclip && alias xcopy="xclip -se c"