From 6641299075741b9f9e50ac0b897e5bb82837d28a Mon Sep 17 00:00:00 2001 From: Jacob Hrbek Date: Wed, 24 Jul 2019 04:43:48 +0200 Subject: [PATCH 1/2] aliases/misc: Add aliases "ix", "xcopy", and "llm" --- aliases/misc.aliases.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/aliases/misc.aliases.sh b/aliases/misc.aliases.sh index d62b6c4..b1ddd7e 100644 --- a/aliases/misc.aliases.sh +++ b/aliases/misc.aliases.sh @@ -108,5 +108,13 @@ alias herr='tail /var/log/httpd/error_log' # herr: Tail alias apacheLogs="less +F /var/log/apache2/error_log" # Apachelogs: Shows apache error logs # --------------------------------------- -# 9. REMINDERS & NOTES +# 9. OTHER ALIASES # --------------------------------------- + +# Aliases by Jacob Hrbek +# 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 ; } +# Used for piping to clipboard +[ -x "$(command -v xclip)" ] && alias xcopy="xclip -se c" From bc12b825745e4aea27af7c8f3a5573bc0317e74b Mon Sep 17 00:00:00 2001 From: Koichi Murase Date: Sat, 5 Feb 2022 23:53:08 +0900 Subject: [PATCH 2/2] aliases/misc: Use "_omb_util_binary_exists" --- aliases/misc.aliases.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aliases/misc.aliases.sh b/aliases/misc.aliases.sh index b1ddd7e..0536abf 100644 --- a/aliases/misc.aliases.sh +++ b/aliases/misc.aliases.sh @@ -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"