summaryrefslogtreecommitdiffstats
path: root/config_files/hl
diff options
context:
space:
mode:
Diffstat (limited to 'config_files/hl')
-rw-r--r--config_files/hl111
1 files changed, 105 insertions, 6 deletions
diff --git a/config_files/hl b/config_files/hl
index 469f7ae..21e13b5 100644
--- a/config_files/hl
+++ b/config_files/hl
@@ -2,9 +2,9 @@
# Default configuration file for the "hl" command
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
-# @(#) [MB] cr_hl.default Version 1.20 du 15/11/03 -
+# @(#) [MB] cr_hl.default Version 1.22 du 16/08/21 -
#
-# /etc/default/hl version 1.20
+# /etc/default/hl version 1.22
#
# ============================== COMMANDS ==============================
@@ -22,6 +22,11 @@ cal :
-c 'Su|Mo|Tu|We|Th|Fr|Sa'
-b '[0-9]'
+chkconfig :
+ -ei
+ -3r '.+\<on\>'
+ -1g '.+\<off\>'
+
# Red : 95% => 100%
# Yellow : 80% => 94%
# Cyan : 0% => 49%
@@ -39,8 +44,8 @@ diff :
-y '^<.*'
-g '^>.*'
-c '^([0-9]+(,[0-9]+)?[a-z][0-9]+(,[0-9]+)?)'
- -2B '^diff -r .+'
- -2b 'Only in'
+ -2B '^diff -r .+'
+ -2b 'Only in'
-c '^Only in ([^:]+):'
-3w '^Only in [^:]+: (.+)'
@@ -51,6 +56,26 @@ dpkg-query :
-c '^(Version|Size):.*'
-y '^Section:.*'
+dmidecode :
+ -e
+ -1B '^#.*'
+ -3g '^Handle .+'
+ -2B '^[^ ].+'
+ -3b 'Manufacturer:'
+ -3y 'Manufacturer: *(.+)'
+ -3b 'Product Name:'
+ -3y 'Product Name: *(.+)'
+ -3b 'Version:'
+ -3y 'Version: *(.+)'
+ -3b '.*Type:'
+ -3y 'Type: *(.+)'
+ -3b 'Family:'
+ -3y 'Family: *(.+)'
+ -3b 'Vendor:'
+ -3y 'Vendor: *(.+)'
+ -3b 'Serial Number:'
+ -3y 'Serial Number: *(.+)'
+
ethtool :
-ei
-r 'duplex:.*half|link detected:.*no|speed:.*100?Mb/s'
@@ -147,6 +172,18 @@ man :
-w '\<white\>'
-3b '(Example .*):'
+mpg123 :
+ -e
+ -%1c '^High Performance MPEG'
+ -. '^$'
+ -1c '^Playing MPEG.*'
+ -2b '^(MPEG .*)'
+ -2b '\<((Title|Artist|Comment|Year|Album|Genre):)'
+ -3c '^Title: *(.*)'
+ -2y '^Artist: *(.*)'
+ -2c '.*Decoding of [0-9]+ (.*) finished'
+ -3g '^\[([0-9:]+)\] Decoding of .* finished'
+
namei :
-e
-3c '.* -> .*'
@@ -164,17 +201,74 @@ netstat :
-b '\<((127\.[01]\.[01]\.[01])|(0\.0\.0\.0))\>'
-r '\<(([0-9]{1,3}\.){3}[0-9]{1,3})\>'
+objdump :
+ -e
+ -3y 'Disassembly of section.*'
+ -3g '^[[:xdigit:]]{16} .*'
+ -1m '\<(je|jne|jbe|jb)\>'
+ -2c '\<[[:xdigit:]]{2} '
+ -2b '^ *\<[[:xdigit:]]+:'
+
# Alias for ps_cpu_time :
ps :
--ps_cpu_time
-strace :
- -e
+smartctl :
+ -ei
+ -b '^==.+|^ID.+|^Num.+'
+ -g '(Raw_Read_Error_Rate|Current_Pending_Sector|Offline_Uncorrectable|UDMA_CRC_Error_Count).+ (0) *$'
+ -r '(Raw_Read_Error_Rate|Current_Pending_Sector|Offline_Uncorrectable|UDMA_CRC_Error_Count).+ ([1-9][0-9]*) *$'
+ -c '(Start_Stop_Count|Power_On_Hours|Power_Cycle_Count|Power-Off_Retract_Count|Spin_Up_Time).+ ([1-9][0-9]*) *$'
+ -y '(Reallocated_Event_Count|Multi_Zone_Error_Rate).+ ([1-9][0-9]*) *$'
+ -c '(Reallocated_Event_Count|Multi_Zone_Error_Rate).+ (0) *$'
+
+strace :
+ -e
-3c '\<(open|close)\>'
-2y '\<(read)\>'
-3r '\<(write)\>'
-3g '^open\("([^"]+)"'
+stty :
+ -e
+ -2b ';'
+ -2b '(speed *) *[0-9]+ *(baud)'
+ -3c 'speed ([0-9]+) baud;'
+ -2b '(rows|columns)[^;]+(;)'
+ -3c 'rows ([0-9]+);'
+ -3c 'columns ([0-9]+);'
+ -3c 'line = ([0-9]+)'
+ -2b '\<((line|intr|quit|erase|kill|eof|eol|eol2|swtch)\> *=)'
+ -2b '\<((start|stop|susp|rprnt|werase|lnext|flush|min|time)\> *=)'
+ -3c '\<intr = ([^;]+)'
+ -3c '\<quit = ([^;]+)'
+ -3c '\<erase = ([^;]+)'
+ -3c '\<kill = ([^;]+)'
+ -3c '\<eof = ([^;]+)'
+ -3c '\<eol = ([^;]+)'
+ -3c '\<eol2 = ([^;]+)'
+ -3c '\<swtch = ([^;]+)'
+ -3c '\<start = ([^;]+)'
+ -3c '\<stop = ([^;]+)'
+ -3c '\<susp = ([^;]+)'
+ -3c '\<rprnt = ([^;]+)'
+ -3c '\<werase = ([^;]+)'
+ -3c '\<lnext = ([^;]+)'
+ -3c '\<flush = ([^;]+)'
+ -3c '\<min = ([^;]+)'
+ -3c '\<max = ([^;]+)'
+ -3c '\<time = ([^;]+)'
+ -2g '(^| )(parenb|parodd|cs8|hupcl|cstopb|cread|clocal|crtscts|ignbrk)\>'
+ -2g '(^| )(brkint|ignpar|parmrk|inpck|istrip|inlcr|igncr|icrnl|ixon|ixoff)\>'
+ -2g '(^| )(|iuclc|ixany|imaxbel|iutf8|opost|olcuc|ocrnl|onlcr|onocr|onlret)\>'
+ -2g '(^| )(ofill|ofdel|nl0|cr0|tab0|bs0|vt0|ff0|isig|icanon|iexten|echo)\>'
+ -2g '(^| )(echoe|echok|echonl|noflsh|xcase|tostop|echoprt|echoctl|echoke)\>'
+ -2r '(-(parenb|parodd|cs8|hupcl|cstopb|cread|clocal|crtscts|ignbrk)\>)'
+ -2r '(-(brkint|ignpar|parmrk|inpck|istrip|inlcr|igncr|icrnl|ixon|ixoff)\>)'
+ -2r '(-(|iuclc|ixany|imaxbel|iutf8|opost|olcuc|ocrnl|onlcr|onocr|onlret)\>)'
+ -2r '(-(ofill|ofdel|nl0|cr0|tab0|bs0|vt0|ff0|isig|icanon|iexten|echo)\>)'
+ -2r '(-(echoe|echok|echonl|noflsh|xcase|tostop|echoprt|echoctl|echoke)\>)'
+
tcpdump :
-e
-u
@@ -479,6 +573,11 @@ MAC :
-ei
-3B '(([0-9a-f]{2}:){5}[0-9a-f]{2})'
+on-off :
+ -ei
+ -3c '\<on\>'
+ -3y '\<off\>'
+
passwd :
-e
-c '^[^:]+'