From 47c46dc01ab2f78f3727899cf22979b68619c29b Mon Sep 17 00:00:00 2001 From: James Feng Cao Date: Mon, 1 Aug 2022 20:22:51 +0800 Subject: [PATCH] rebuilding site Mon Aug 1 08:22:51 PM CST 2022 --- en/_posts/index.xml | 16 ++++++++++- en/index.html | 6 ++++ en/index.xml | 16 ++++++++++- en/links/index.html | 2 +- en/sitemap.xml | 3 ++ en/sitemap/index.html | 8 +++--- en/termux/index.html | 67 +++++++++++++++++++++++++++++++++++++++++++ termux/bashrc | 44 ++++++++++++++++++++++++++++ termux/inputrc | 12 ++++++++ 9 files changed, 167 insertions(+), 7 deletions(-) create mode 100644 en/termux/index.html create mode 100644 termux/bashrc create mode 100644 termux/inputrc diff --git a/en/_posts/index.xml b/en/_posts/index.xml index 96dbc88..63ff377 100644 --- a/en/_posts/index.xml +++ b/en/_posts/index.xml @@ -65,7 +65,7 @@ Shell command mode Thu, 30 Jun 2022 00:00:00 +0000 /en/links/ - Clicking the following hypertext will install menus for long pressing the bookmark button (with star as icon): + Click the following links to install menus popped by long pressing the bookmark button (with star as icon): Wait for network msg Certificate info Web fullscreen @@ -151,6 +151,20 @@ are used for icons in the bottom toolbar. file "0" to replace If a new button is defined (file name "20" exists), uweb also supports VectorDrawable with "android compiled XML" format. All icon files must be all VectorDrawables or 此时所有图标文件必须都是compiled XML格式,或都是普通的图像格式(png,jpg,gif等)。用户可将VectorDrawable XML文件放到安卓项目目录assets下面,重新生成apk文件以后将apk文件解压即可得compiled XML格式图标文件。 + + Termux + /en/termux/ + Sat, 01 Jan 2022 00:00:00 +0000 + + /en/termux/ + Only the termux versions provided along with uweb browser can work seamlessly. +Click the following links to install termux configurations: .bashrc +.inputrc +z.sh +commacd.sh +Copy existing termux installation to other devices target device: install termux app, then run "apt install openssh" inside the termux. source device: Send the "~/.ssh" folder with uweb browser to the network. target device: Uweb to visit "file://data/data/com.termux/files/home/" to reach the folder, then receive the data sent by the above source device. + + Long pressed link menu /en/longclick/ diff --git a/en/index.html b/en/index.html index 109602b..2bd0d49 100644 --- a/en/index.html +++ b/en/index.html @@ -143,6 +143,12 @@ +
  • + + Termux + +
  • +
  • Long pressed link menu diff --git a/en/index.xml b/en/index.xml index 7a2f667..bf66bb9 100644 --- a/en/index.xml +++ b/en/index.xml @@ -104,7 +104,7 @@ Note: "Engines" needs file "engine.search",whose format is sam Thu, 30 Jun 2022 00:00:00 +0000 /en/links/ - Clicking the following hypertext will install menus for long pressing the bookmark button (with star as icon): + Click the following links to install menus popped by long pressing the bookmark button (with star as icon): Wait for network msg Certificate info Web fullscreen @@ -258,6 +258,20 @@ are used for icons in the bottom toolbar. file "0" to replace If a new button is defined (file name "20" exists), uweb also supports VectorDrawable with "android compiled XML" format. All icon files must be all VectorDrawables or 此时所有图标文件必须都是compiled XML格式,或都是普通的图像格式(png,jpg,gif等)。用户可将VectorDrawable XML文件放到安卓项目目录assets下面,重新生成apk文件以后将apk文件解压即可得compiled XML格式图标文件。 + + Termux + /en/termux/ + Sat, 01 Jan 2022 00:00:00 +0000 + + /en/termux/ + Only the termux versions provided along with uweb browser can work seamlessly. +Click the following links to install termux configurations: .bashrc +.inputrc +z.sh +commacd.sh +Copy existing termux installation to other devices target device: install termux app, then run "apt install openssh" inside the termux. source device: Send the "~/.ssh" folder with uweb browser to the network. target device: Uweb to visit "file://data/data/com.termux/files/home/" to reach the folder, then receive the data sent by the above source device. + + Long pressed link menu /en/longclick/ diff --git a/en/links/index.html b/en/links/index.html index a81b2ee..022fd15 100644 --- a/en/links/index.html +++ b/en/links/index.html @@ -47,7 +47,7 @@
    -

    Clicking the following hypertext will install menus for long pressing the bookmark button (with star as icon):
    +

    Click the following links to install menus popped by long pressing the bookmark button (with star as icon):
    Wait for network msg

    Certificate info

    Web fullscreen

    diff --git a/en/sitemap.xml b/en/sitemap.xml index 399222e..7e05858 100644 --- a/en/sitemap.xml +++ b/en/sitemap.xml @@ -296,6 +296,9 @@ hreflang="en" href="/en/icons/" /> + + /en/termux/ + 2022-01-01T00:00:00+00:00 /en/longclick/ 2020-11-06T00:00:00+00:00 diff --git a/en/sitemap/index.html b/en/sitemap/index.html index 2984579..16bfa54 100644 --- a/en/sitemap/index.html +++ b/en/sitemap/index.html @@ -62,13 +62,13 @@
    • Bottom toolbar button long pressing menus
    • Menu for long pressing hypertext
    • @@ -93,7 +93,7 @@
    • Html5 application
    • File manager
    • Tools
    • -
    • Termux +
    • Termux
      • GNU bc
      • Gnuplot
      • diff --git a/en/termux/index.html b/en/termux/index.html new file mode 100644 index 0000000..fe2755a --- /dev/null +++ b/en/termux/index.html @@ -0,0 +1,67 @@ + + + + + + + + Termux + + + +
        + + + +
        +
        + +
        +

        Termux +
        + +

        +
          + +
        +

        Only the termux versions provided along with uweb browser can work seamlessly.

        + +

        .bashrc

        +

        .inputrc

        +

        z.sh

        +

        commacd.sh

        +

        Copy existing termux installation to other devices

        +
          +
        • target device: install termux app, then run "apt install openssh" inside the termux.
        • +
        • source device: Send the "~/.ssh" folder with uweb browser to the network.
        • +
        • target device: Uweb to visit "file://data/data/com.termux/files/home/" to reach the folder, then receive the data sent by the above source device.
        • +
        • source device: Run "sshd".
        • +
        • target device: Run the command "scp -P 8022 -r [source ip]:.. .."
        • +
        +

        Tips

        +

        File system navigation:
        +With z.sh and commacd, user can reach any folder with few key stokes. Run "v" to launch uweb file manager on the current working directory, long click any file link to share.

        + +
        + + + diff --git a/termux/bashrc b/termux/bashrc new file mode 100644 index 0000000..a3bf988 --- /dev/null +++ b/termux/bashrc @@ -0,0 +1,44 @@ +unset HISTFILE +if [[ $EUID -ne 0 ]]; then + history -r ~/.bash_history + else + history -r ~/.bash_history.root +fi +export HISTCONTROL=ignoreboth:erasedups +#shopt -s histappend + +shopt -s globstar + +export _Z_CMD=j +. z.sh +. commacd.sh + +alias j="_z" +v(){ + file= + if [ $1 ]; then + file=${1} + shift + fi + url="file://${PWD}/${file}" + am start -a android.intent.action.VIEW -d "$url" $@ +} + +d(){ + word=$1 + dict=${2:-ahd} + tdict ~/share/dict/$dict $1 +} + +z(){ +#usage: z word dictname percent + word=$1 + dict=~/share/dict/$2.xz + percent='' + if [ "$3" ]; then + percent=${3}p + fi + xz -cdf -- "$dict" | less -n +"${percent}/####$word" +} + +export LESS=-inR diff --git a/termux/inputrc b/termux/inputrc new file mode 100644 index 0000000..b1d4ac8 --- /dev/null +++ b/termux/inputrc @@ -0,0 +1,12 @@ +set editing-mode vi + +$if Bash + Space: magic-space +$endif +"\e[A": history-search-backward +"\e[B": history-search-forward + +set completion-prefix-display-length 2 + +Control-j: menu-complete +Control-k: menu-complete-backward