references:
- Best UNIX shell-based tools
- * alebcay/awesome-shell | * zh-cn
- * rockerBOO/awesome-neovim
- sindresorhus/awesome
- Sainnhe's Dashboard: os in web browser
- others
- My Minimalist Over-powered Linux Setup Guide
- * devynspencer/cute_commands.sh
- Use Bash Strict Mode (Unless You Love Debugging)
- Learn Enough Command Line to Be Dangerous
- jlevy/the-art-of-command-line
- pv - Pipe Viewer
awesome shells
eaz
[!TIP]
- check more icon glyphs in * iMarslo/unicode
- ngtv2409/eza-themer
| UNICODE | ICON |
|---|---|
\U000F0DFA |
|
\uE7C5 |
|
\U000F04C1 |
|
\U000F0628 |
|
\U000F0D6E |
|
\uF1D3 |
|
\U000F05E6 |
|
\U000F1183 |
|
\uF4B8 |
|
\U000F02A4 |
|
\uF1D2 |
|
\U000F117F |
|
$ export EZA_CONFIG_DIR="${HOME}/.marslo/.config/eza"
# download the eza-themes
$ git clone git@github.com:eza-community/eza-themes.git "${HOME}"/.config/eza
$ ln -sf "${HOME}"/.config/eza/eza-themes/themes/one_dark.yml "${EZA_CONFIG_DIR}"/theme.yml
# customized settings
$ cat <<'EOF' > "${EZA_CONFIG_DIR}"/custom.yml
---
filenames:
".tags": { icon: { glyph: "\U000F0DFA" } }
".vim_mru_files": { icon: { glyph: "\uE7C5" } }
".git-stats": { icon: { glyph: "\U000F04C1" } }
".bashrc": { icon: { glyph: "\U000F0628" } }
".bash_profile": { icon: { glyph: "\U000F0628" } }
".gitignore": { icon: { glyph: "\uF1D3" } }
".gitconfig": { icon: { glyph: "\uF1D3" } }
"LICENSE": { icon: { glyph: "\U000F05E6" } }
"COPYRIGHT": { icon: { glyph: "\U000F05E6" } }
"install": { icon: { glyph: "\U000F1183" } }
"uninstall": { icon: { glyph: "\U000F1183" } }
".copilot": { icon: { glyph: "\uF4B8" } }
".github": { icon: { glyph: "\U000F02A4" } }
".git": { icon: { glyph: "\uF1D2" } }
"vars": { icon: { glyph: "\U000F117F" } }
EOF
# merge by yq
$ brew install --HEAD yq
$ yq eval-all '. as $item ireduce ({}; . * $item)' \
"$HOME"/.config/eza/eza-themes/themes/one_dark.yml
"${EZA_CONFIG_DIR}"/custom.yml > "${EZA_CONFIG_DIR}"/theme.yml
ncdu : NCurses Disk Usage
[!TIP]
# deps install
$ sudo snap install zig --class --beta
$ sudo apt install libncurses-dev
$ make
$ sudo make install PREFIX=/usr/local
# verify
$ ncdu --version
ncdu 2.3

[!NOTE|label:Alternatives:]
ansi colors
[!NOTE|label:references:]
- see more toosl for ansicolor in * iMarslo: colors
c: bash-colors
[!TIP]
- flags
┌───────┬────────────────┬─────────────────┐ ┌───────┬─────────────────┬───────┐ │ Fg/Bg │ Color │ Octal │ │ Code │ Style │ Octal │ ├───────┼────────────────┼─────────────────┤ ├───────┼─────────────────┼───────┤ │ K/k │ Black │ \e[ + 3/4 + 0m │ │ s/S │ Bold (strong) │ \e[1m │ │ R/r │ Red │ \e[ + 3/4 + 1m │ │ d/D │ Dim │ \e[2m │ │ G/g │ Green │ \e[ + 3/4 + 2m │ │ i/I │ Italic │ \e[3m │ │ Y/y │ Yellow │ \e[ + 3/4 + 3m │ │ u/U │ Underline │ \e[4m │ │ B/b │ Blue │ \e[ + 3/4 + 4m │ │ f/F │ Blink (flash) │ \e[5m │ │ M/m │ Magenta │ \e[ + 3/4 + 5m │ │ n/N │ Negative │ \e[7m │ │ C/c │ Cyan │ \e[ + 3/4 + 6m │ │ h/H │ Hidden │ \e[8m │ │ W/w │ White │ \e[ + 3/4 + 7m │ │ t/T │ Strikethrough │ \e[9m │ ├───────┴────────────────┴─────────────────┤ ├───────┼─────────────────┼───────┤ │ High intensity │ \e[ + 9/10 + *m │ │ 0 │ Reset │ \e[0m │ └────────────────────────┴─────────────────┘ └───────┴─────────────────┴───────┘ Uppercase = Reset a style: \e[2*m

ansi
[!NOTE|label:references:]
install
$ curl -sL git.io/ansi -o "${iRCHOME}"/utils/ansi && chmod +x $_ $ ln -sf $(realpath "${iRCHOME}"/utils/ansi) $(realpath "${iRCHOME}"/bin)/ansi
1.4.1.3 -- ansi color tables
diff-so-fancy
[!NOTE|label:references:]
# ubuntu
$ sudo add-apt-repository ppa:aos1/diff-so-fancy
$ sudo apt update
$ sudo apt install diff-so-fancy
# verify
$ diff-so-fancy --version
Diff-so-fancy: https://github.com/so-fancy/diff-so-fancy
Version : 1.4.2
utility
elinks
[!NOTE|label:references:]
- ELinks
- MacOS:
$ brew install felinks $ which -a elinks /usr/local/bin/elinks- * iMarslo : open html in terminal
- ELinks - Full-Featured Text WWW Browser
$ elinks https://google.com

configure
[!NOTE|label:references:]
$ cat ~/.elinks/elinks.conf set connection.ssl.cert_verify = 0
duf

enhancd
[!NOTE|label:references:]
- mattn/ltsv.vim
- * lfromanini/smartcd
* iMarslo : autocmd BufWritePre except
" original autocmd BufWritePre * :retab! " automatic retab " for ltsv if has( "autocmd" ) autocmd BufRead,BufNewFile *.ltsv set filetype=ltsv syntax=groovy noexpandtab autocmd BufWritePre *\(.ltsv\|.diffs\)\@<! :retab! " automatic retab endif
install
$ git clone https://github.com/babarot/enhancd && source enhancd/init.sh # or $ curl -L git.io/enhancd | shre-mapping cmd
diff --git a/init.sh b/init.sh index 55a9c95..bc3ae89 100644 --- a/init.sh +++ b/init.sh @@ -52,8 +52,8 @@ if [[ ! -f ${ENHANCD_DIR}/enhancd.log ]]; then touch "${ENHANCD_DIR}/enhancd.log" fi -# alias to cd -eval "alias ${ENHANCD_COMMAND:=cd}=__enhancd::cd" +# alias to ce +eval "alias ${ENHANCD_COMMAND:=ce}=__enhancd::cd" # Set the filter if empty if [[ -z ${ENHANCD_FILTER} ]]; thenusage
$ brew install fzy # debine $ sudo apt install fzy $ export ENHANCD_FILTER="fzf --height 35%:fzy" $ source /path/to/enhancd/init.sh $ ce .
1.4.1.6 -- enhancd