My personal dotfiles for a modern CLI environment on Linux and macOS.
- Zsh is installed and set as your login shell.
-
Install Rust.
We use Cargo (Rust's package manager) to install and manage modern CLI tools. This step installs Rust, then adds
cargo-binstall(for pre-compiled binaries) andcargo-update(for convenient binary updates).# Install the Rust toolchain curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --profile=minimal # Add Cargo to your PATH and reload your shell echo 'export PATH="$HOME/.cargo/bin:$PATH"' >> ~/.zshrc exec zsh # Install cargo-binstall and cargo-update curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash cargo binstall -y cargo-update
-
Install CLI tools.
This script installs a curated set of recommended CLI tools. You may also choose to install specific tools manually if you prefer.
curl -fsSL https://raw.githubusercontent.com/helium777/dotfiles/main/install.sh | bash -
Bootstrap dotfiles.
This script clones the dotfiles repository into
~/.local/share/dotfilesand sources theinit.zshfile in your.zshrcfile.curl -fsSL https://raw.githubusercontent.com/helium777/dotfiles/main/bootstrap.sh | bash -
Restart your shell.
To finalize the setup, restart your shell.
exec zsh
To update the dotfiles to the latest version, simply run the bootstrap script again. An update_dotfiles command is also available for convenience after the initial installation.
update_dotfilesTo completely remove the dotfiles setup:
-
Edit
~/.zshrcand remove the following line from the file:source ~/.local/share/dotfiles/zsh/init.zsh
-
Delete the dotfiles and Zinit directories:
rm -rf ~/.local/share/dotfiles rm -rf "${ZINIT[HOME_DIR]}"
-
Uninstall Rust:
rustup self uninstall