Batch configuration
Simple shell script: https://github.com/qbit-git/modern-cli/blob/main/modern_cli_ubuntu2004.sh
bash modern_cli_ubuntu2004.sh
- This script is suitable for use with root/sudo permissions
- This script is suitable for initialization, no conditional judgment is made, and it is not suitable for complex scenarios
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
- Programming language: Python
- GitHub: https://github.com/tldr-pages/tldr-python-client
Installation and configuration
pipx install tldr tldr -u
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
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。