awesome shells

eaz

[!TIP]

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
ncdu
1.4.1.1 -- ncdu

[!NOTE|label:Alternatives:]

ansi colors

[!NOTE|label:references:]

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
    
bash color
1.4.1.2 -- bash color

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
    
    ansi color tables
    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

[!NOTE|label:references:]

$ elinks https://google.com
elinks google.com
1.4.1.4 -- elinks google.com
  • configure

    [!NOTE|label:references:]

    $ cat ~/.elinks/elinks.conf
    set connection.ssl.cert_verify = 0
    

duf

duf
1.4.1.5 -- duf

enhancd

[!NOTE|label:references:]

  • install

    $ git clone https://github.com/babarot/enhancd && source enhancd/init.sh
    
    # or
    $ curl -L git.io/enhancd | sh
    
  • re-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} ]]; then
    
  • usage

    $ brew install fzy
    # debine
    $ sudo apt install fzy
    
    $ export ENHANCD_FILTER="fzf --height 35%:fzy"
    $ source /path/to/enhancd/init.sh
    $ ce .
    
    enhancd
    1.4.1.6 -- enhancd

watchman

Copyright © marslo 2020-2026 all right reserved,powered by GitbookLast Modified: 2026-05-26 17:56:06

results matching ""

    No results matching ""