bash, geany, vim, README.md

This commit is contained in:
2025-11-19 15:56:21 +01:00
parent 8f42578e4e
commit f249171d50
51 changed files with 196 additions and 3977 deletions

View File

@@ -43,7 +43,7 @@ complete -o bashdefault -o default -F _${this}_completion ${this}
exit 0;
fi
_echo(){ [[ $is_raw == 1 ]] && echo -e "$1" || echo "$1" | less -R -S; }
_echo(){ [[ $is_raw == 1 ]] && echo -e "$1" || echo "$1" | \less -R -S; }
[[ "$arg" = "--raw" ]] && is_raw=1 && command shift && arg=${1:---help} || is_raw=0
if [[ "$arg" = "--help" ]]; then

View File

@@ -1,6 +1,6 @@
#!/bin/bash
this="${0##*/}"
this_version="2021-01-22"
this_version="2025-09-25"
USAGE="\
$this@v$this_version
Wrapper around '/etc/os-release' to show Ubuntu (like) os info.
@@ -39,18 +39,18 @@ case "$ID" in
;;
esac
out="${out}\nVERSION_NICK=$UBUNTU_CODENAME"
codename=`grep $(lsb_release -rs) /usr/share/python-apt/templates/Ubuntu.info | grep -m 1 "Description: Ubuntu " | cut -d "'" -f2`
codename="$(grep "$(lsb_release -rs)" /usr/share/python-apt/templates/Ubuntu.info | grep -m 1 "Description: Ubuntu " | cut -d "'" -f2)"
out="${out}\nVERSION_NAME=$codename"
# http://www.releases.ubuntu.com/jammy/
out="${out}\nLIKE=$ID_LIKE"
out="${out}\n`grep URL /etc/os-release | sed 's/^\([A-Z_]*\)_URL/URL_\1/'`"
out="${out}\n$(grep URL /etc/os-release | sed 's/^\([A-Z_]*\)_URL/URL_\1/')"
if [[ "$arg" = "--all" ]]; then
echo -e "$out"
exit 0
fi
if [[ "$arg" = "--pick" ]]; then
echo -e `echo -e "$out" | grep "\b${2:-DESCRIPTION}\b" | cut -d = -f 2-`
echo -e "$(echo -e "$out" | grep "\b${2:-DESCRIPTION}\b" | cut -d = -f 2-)"
exit 0
fi

View File

@@ -2,7 +2,7 @@
/* jshint esversion: 8,-W097, -W040, node: true, expr: true, undef: true *//* global echo, $, pipe, s, style, fetch, cyclicLoop */
$.is_fatal= true;
$.api("<...query_array>", true)
.version("v2022-09-23")
.version("v2025-10-31")
.describe([
"This is just redirection to [WolframAlpha](https://www.wolframalpha.com/) site.",
"Use the same expressions as on web page."
@@ -14,7 +14,7 @@ $.api("<...query_array>", true)
query_array.unshift(first);
echo("Opening:");
echo("https://www.wolframalpha.com/input/?i="+encodeURI(query_array.join(" ")).replace(/\+/g, '%2B'))
.xargs(s.runA, "exo-open --launch WebBrowser {}")
.xargs(s.runA, "xdg-open {}")
.then($.exit.bind(null, 0)).catch($.exit.bind(null, 1));
})
.parse();