diff options
author | Mike Crute <mike@crute.us> | 2019-03-28 21:23:44 -0700 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2019-03-28 21:25:02 -0700 |
commit | b44576f38ef6c78e10e2e806391cb1bbc6d2e003 (patch) | |
tree | a9928bf5a512af9ea1a45d2bfd0064ccf1f01a37 /.bashrc_local_home | |
parent | 67450831f4698af0455f4d512d099d53c308c53f (diff) | |
download | dotfiles-b44576f38ef6c78e10e2e806391cb1bbc6d2e003.tar.bz2 dotfiles-b44576f38ef6c78e10e2e806391cb1bbc6d2e003.tar.xz dotfiles-b44576f38ef6c78e10e2e806391cb1bbc6d2e003.zip |
Add simple-info function
Diffstat (limited to '.bashrc_local_home')
-rw-r--r-- | .bashrc_local_home | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.bashrc_local_home b/.bashrc_local_home index 58d622d..09f1611 100644 --- a/.bashrc_local_home +++ b/.bashrc_local_home | |||
@@ -25,3 +25,17 @@ export -f alpine-build | |||
25 | export TERM_BG_SHADE="dark" | 25 | export TERM_BG_SHADE="dark" |
26 | 26 | ||
27 | alias mfi-ssh="ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -l admin " | 27 | alias mfi-ssh="ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -l admin " |
28 | |||
29 | simple-info() { | ||
30 | for i in /usr/share/info/*; do | ||
31 | m="$(basename "$i")" | ||
32 | n="${m%.info.gz}" | ||
33 | echo ${n%.gz} | ||
34 | done | less -FSRX | ||
35 | |||
36 | # There can be many .info-\d+.gz | ||
37 | zcat "/usr/share/info/$1.info.gz" | | ||
38 | sed -Ee "/\x1f/d; /^File: $1.info,/d; /^(Node|Ref): .*�/d" | | ||
39 | cat -s | | ||
40 | less | ||
41 | } | ||