Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,24 @@ sudo apt-get install -y \
wget \
git

# Install jj (Jujutsu) for Linux
if ! command -v jj &> /dev/null; then
printf 'Installing jj (Jujutsu)...\n'
if command -v cargo &> /dev/null; then
# Install cargo-binstall if not present
if ! command -v cargo-binstall &> /dev/null; then
cargo install cargo-binstall
fi
cargo binstall --no-confirm jj-cli
else
# Install Rust/Cargo first, then cargo-binstall, then jj
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
cargo install cargo-binstall
cargo binstall --no-confirm jj-cli
fi
fi

printf 'Setting zsh as shell\n'
if [ -n "$(grep $(whoami) /etc/passwd)" ] && ! grep -q "$(whoami).*/bin/zsh" /etc/passwd; then
sudo chsh -s /bin/zsh $(whoami)
Expand Down
19 changes: 19 additions & 0 deletions run_once_brew.sh.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ brew bundle --no-lock --file=/dev/stdin <<EOF
brew "fd"
brew "fzf"
brew "gh"
brew "jj"
brew "jq"
brew "trash"
brew "wget"
Expand All @@ -31,6 +32,24 @@ sudo apt-get install -y \
wget \
git

# Install jj (Jujutsu) for Linux
if ! command -v jj &> /dev/null; then
printf 'Installing jj (Jujutsu)...\n'
if command -v cargo &> /dev/null; then
# Install cargo-binstall if not present
if ! command -v cargo-binstall &> /dev/null; then
cargo install cargo-binstall
fi
cargo binstall --no-confirm jj-cli
else
# Install Rust/Cargo first, then cargo-binstall, then jj
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source "$HOME/.cargo/env"
cargo install cargo-binstall
cargo binstall --no-confirm jj-cli
fi
fi

{{ end -}}


Expand Down