generated from ublue-os/boxkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
only support building devbox, add delta package, add homebrew setup
- Loading branch information
1 parent
46a00d7
commit 57cef32
Showing
4 changed files
with
50 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
if test "$(id -u)" -gt "0"; then | ||
blue=$(printf '\033[38;5;32m') | ||
bold=$(printf '\033[1m') | ||
normal=$(printf '\033[0m') | ||
|
||
if test ! -d /home/linuxbrew/.linuxbrew; then | ||
name="$(hostname -s)" | ||
linuxbrew_home="${XDG_DATA_HOME:-$HOME/.local/share}"/devbox/"${name}" | ||
printf "Setting up Linuxbrew...\t\t\t\t " | ||
if test ! -d "${linuxbrew_home}"; then | ||
mkdir -p "${linuxbrew_home}" | ||
if test -d "${XDG_DATA_HOME:-$HOME/.local/share}"/devbox/.linuxbrew; then | ||
mv "${XDG_DATA_HOME:-$HOME/.local/share}"/devbox/.linuxbrew "${linuxbrew_home}"/.linuxbrew | ||
fi | ||
fi | ||
if test ! -d /home/linuxbrew; then | ||
sudo mkdir -p /home/linuxbrew | ||
fi | ||
sudo mount --bind "${linuxbrew_home}" /home/linuxbrew | ||
sudo cp -R /home/homebrew/.linuxbrew /home/linuxbrew/ | ||
sudo chown -R "$(id -u)" /home/linuxbrew | ||
unset linuxbrew_home | ||
printf "%s[ OK ]%s\n" "${blue}" "${normal}" | ||
fi | ||
|
||
if test ! -d /usr/local/share/bash-completion/completions; then | ||
printf "Setting up Tab-Completions...\t\t\t " | ||
sudo mkdir -p /usr/local/share/bash-completion | ||
sudo mount --bind /run/host/usr/share/bash-completion /usr/local/share/bash-completion | ||
if test -x /run/host/usr/bin/ujust; then | ||
sudo ln -fs /usr/bin/distrobox-host-exec /usr/local/bin/ujust | ||
fi | ||
printf "%s[ OK ]%s\n" "${blue}" "${normal}" | ||
fi | ||
|
||
if test ! -f /etc/linuxbrew.firstrun; then | ||
sudo touch /etc/linuxbrew.firstrun | ||
printf "\nlinuxbrew first run complete!\n\n" | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ chezmoi | |
cosign | ||
ctop | ||
curl | ||
delta | ||
direnv | ||
fd | ||
fish | ||
|