Skip to content

Instantly share code, notes, and snippets.

@christianbaptista
Last active May 26, 2025 05:40
Show Gist options
  • Save christianbaptista/2d197d34a8265241104f5484986258c8 to your computer and use it in GitHub Desktop.
Save christianbaptista/2d197d34a8265241104f5484986258c8 to your computer and use it in GitHub Desktop.
Installing Zed editor in FreeBSD 14.1
#step by step worked for me using sh or bash. Use doas or su.
doas pkg install -y git rust protobuf cmake ca_root_nss pkgconf alsa-lib alsa-utils libyuv
git clone https://github.com/zed-industries/zed.git
cd zed
export RUSTFLAGS="-C link-dead-code"
cargo build --release
cargo build --release --frozen -p zed
doas install -Dm755 "./target/release/zed" "/usr/local/bin/zed"
# License
mkdir /usr/share/licenses/zed/
doas install -Dm644 "./assets/licenses.md" "/usr/share/licenses/zed/LICENSE.md"
# Icons
doas cp "crates/zed/resources/app-icon.png" "/usr/local/share/icons/hicolor/512x512/apps/zed.png"
doas cp "crates/zed/resources/[email protected]" "/usr/local/share/icons/hicolor/512x512@2/apps/zed.png"

Comments are disabled for this gist.