mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-09-21 10:27:09 +00:00
aliases/misc: Use "_omb_util_binary_exists"
This commit is contained in:
parent
6641299075
commit
bc12b82574
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user