- SSH config: disable password and send COLORTERM - Vim: use <space>u instead of <space>w - Helix: - Update for bug fixes after 23.10 - Install bash completions, desktop file, and icon - Fix bufferline and inlay hints color - Reenable auto pairs since smart tabs is a thing now - Ubuntu: - Update to 23.10 - Change naming convention - Add podman and qemu-user-static - Setup: - Update install and swap config - Add fish, Pods, Steam - Fix CJK font config path - Remove Firefox Wayland override now that it's the default - Shells: configure fish - Manual: - Configure starship - Use cargo locked install - Remove sparse protocol config now that it's the default - Fix failure when fish config directory is not found - tmux: fix truecolor support for Alacritty
37 lines
879 B
Bash
Executable File
37 lines
879 B
Bash
Executable File
#!/bin/sh -e
|
|
if [ $# -gt 2 ]; then
|
|
echo "Usage: $0 [-f]"
|
|
exit 1
|
|
fi
|
|
if [ "$1" = '-f' ]; then
|
|
force=true
|
|
fi
|
|
if ! command -v curl > /dev/null; then
|
|
echo "Error: curl not found"
|
|
exit 1
|
|
fi
|
|
if ! command -v cc > /dev/null; then
|
|
echo "Error: cc not found"
|
|
exit 1
|
|
fi
|
|
if command -v cargo > /dev/null && [ "$force" != true ]; then
|
|
echo "Error: rust already installed; use -f to force"
|
|
exit 1
|
|
fi
|
|
curl --proto '=https' --tlsv1.3 -sSf https://sh.rustup.rs | sh -s -- -y
|
|
. "$HOME/.cargo/env"
|
|
rustup component add rust-analyzer
|
|
mkdir -p ~/.config/rustfmt
|
|
cat > ~/.config/rustfmt/rustfmt.toml << 'EOF'
|
|
hard_tabs = true
|
|
EOF
|
|
mkdir -p ~/.local/bin
|
|
cat > ~/.local/bin/rust-analyzer << 'EOF'
|
|
#!/bin/sh
|
|
$(rustup which rust-analyzer) "$@"
|
|
EOF
|
|
chmod +x ~/.local/bin/rust-analyzer
|
|
cargo install --locked cargo-auditable
|
|
cargo install --locked --force cargo-auditable rust-script
|
|
./rust-configure
|