aboutsummaryrefslogtreecommitdiffstats
path: root/texinfo/bash-aliases
diff options
context:
space:
mode:
Diffstat (limited to 'texinfo/bash-aliases')
-rw-r--r--texinfo/bash-aliases30
1 files changed, 30 insertions, 0 deletions
diff --git a/texinfo/bash-aliases b/texinfo/bash-aliases
new file mode 100644
index 0000000..b52e4e8
--- /dev/null
+++ b/texinfo/bash-aliases
@@ -0,0 +1,30 @@
+# -*- shell-script -*-
+
+#DESCRIPTION: Open a programs info manual and open the invoking chapter
+#USAGE: iv [program]
+
+iv () {
+ __texinfo="$1"
+ shift 1
+ info "(${__texinfo})" invoking "$@"
+ unset __texinfo
+}
+
+
+#DESCRIPTION: Open a programs info manual and try to select a usage page
+#USAGE: iu [program] [node]
+
+iu () {
+ info --usage "$@"
+}
+
+
+#DESCRIPTION: Open a programs info manual
+#USAGE: i [program] [node]
+
+i () {
+ __texinfo="$1"
+ shift 1
+ info "(${__texinfo})" "$@"
+ unset __texinfo
+}