Batch configuration

tool

rg replaces grep

  • Programming language: Rust
  • GitHub:https://github.com/BurntSushi/ripgrep
  • Installation and configuration

    sudo apt install ripgrep -y
    # 下面一句是避免与下文介绍的 bat 冲突
    sudo sed -i '/\/usr\/.crates2.json/d' /var/lib/dpkg/info/ripgrep.list
    echo 'alias grep=rg' >> ~/.bashrc

bat replace cat

  • Programming language: Rust
  • GitHub: https://github.com/sharkdp/bat
  • Installation and configuration

    sudo apt install bat -y
    echo 'alias cat=batcat' >> ~/.bashrc 

fd replace find

  • Programming language: Rust
  • GitHub: # https://github.com/sharkdp/fd

    sudo apt install fd-find -y
    echo 'alias fd=fdfind' >> ~/.bashrc 
    echo 'alias find="fdfind -H"' >> ~/.bashrc 

Fzf command line fuzzy matching

  • Programming language: Go
  • GitHub: https://github.com/junegunn/fzf

    sudo apt install fzf
    echo 'source /usr/share/doc/fzf/examples/completion.bash' >> ~/.bashrc 
    echo 'source /usr/share/doc/fzf/examples/key-bindings.bash' >> ~/.bashrc

pipx

  • Programming language: Python
  • GitHub: https://github.com/pypa/pipx
  • Installation and configuration

    pip3 install pipx
    echo 'export PATH=$PATH:/home/ubuntu/.local/bin' >> ~/.bashrc

tldr

glances replace top

  • Programming language: Python
  • GitHub: https://github.com/nicolargo/glances
  • Installation and configuration

    pipx install glances
    mkdir .config/glances/
    cp .local/pipx/venvs/glances/share/doc/glances/glances.conf .config/glances/glances.conf

xonsh Python-based shell

  • Programming language: Python
  • GitHub: https://github.com/xonsh/xonsh
  • Installation and configuration

    pipx install xonsh[full] -i https://mirrors.aliyun.com/pypi/simple/
    aliases['ll'] = 'ls -al'
This article is from qbit snap

qbit
268 声望279 粉丝