1
0
Fork 0
mirror of https://github.com/kou029w/dotfiles.git synced 2025-01-31 06:18:00 +00:00

remove homebrew

This commit is contained in:
Nebel 2025-01-25 22:58:00 +09:00
parent 4e44583388
commit 58b0034ac4
Signed by: nebel
GPG key ID: 79807D08C6EF6460
5 changed files with 8 additions and 58 deletions

View file

@ -1,16 +0,0 @@
tap "homebrew/bundle"
brew "gh"
brew "go"
brew "hadolint"
brew "rclone"
brew "shellcheck"
brew "tea"
if OS.mac?
brew "corepack"
brew "node"
cask "docker"
cask "logseq"
cask "slack"
cask "visual-studio-code"
end

View file

@ -1,19 +1,5 @@
if [ -d /usr/local/Homebrew ]; then
export HOMEBREW_PREFIX="/usr/local"
export HOMEBREW_CELLAR="/usr/local/Cellar"
export HOMEBREW_REPOSITORY="/usr/local/Homebrew"
export PATH="/usr/local/bin:/usr/local/sbin${PATH+:$PATH}"
export MANPATH="/usr/local/share/man${MANPATH+:$MANPATH}:"
export INFOPATH="/usr/local/share/info:${INFOPATH:-}"
else
export HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew"
export HOMEBREW_CELLAR="/home/linuxbrew/.linuxbrew/Cellar"
export HOMEBREW_REPOSITORY="/home/linuxbrew/.linuxbrew/Homebrew"
export PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin${PATH+:$PATH}"
export MANPATH="/home/linuxbrew/.linuxbrew/share/man${MANPATH+:$MANPATH}:"
export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH:-}"
fi
[ -n "$BASH_VERSION" ] && . "$HOME/.bashrc" [ -n "$BASH_VERSION" ] && . "$HOME/.bashrc"
[ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env" [ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env"
[ -e "$HOME/.nix-profile/etc/profile.d/nix.sh" ] && . "$HOME"/.nix-profile/etc/profile.d/nix.sh
export DENO_INSTALL_ROOT="${HOME}/.local" export DENO_INSTALL_ROOT="${HOME}/.local"
export PATH="$HOME/.local/bin:$PATH" export PATH="$HOME/.local/bin:$PATH"

View file

@ -13,5 +13,5 @@ sudo ./install
or or
```sh ```sh
sudo ./install homebrew desktop sudo ./install desktop
``` ```

View file

@ -1,21 +0,0 @@
#!/bin/bash
set -euo pipefail
cd -- "$(dirname -- "$0")"
function install_homebrew_packages() {
local uid
uid=${SUDO_UID:-$(id -u)}
sudo --user="#$uid" \
NONINTERACTIVE=1 \
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
if [[ -x /usr/local/bin/brew ]]; then
sudo --user="#$uid" \
/usr/local/bin/brew bundle --global
else
sudo --user="#$uid" \
/home/linuxbrew/.linuxbrew/bin/brew bundle --global
fi
}
[[ $(uname -sm) =~ ^(Linux x86_64|Darwin x86_64)$ ]] &&
install_homebrew_packages

View file

@ -8,19 +8,20 @@ docker-compose-plugin
fdupes fdupes
ffmpeg ffmpeg
fzf fzf
gh
git-crypt git-crypt
imagemagick golang
jq jq
knot-dnsutils knot-dnsutils
nano nano
nix-setup-systemd
nodejs nodejs
qemu-user-static qemu-user-static
rclone
screen screen
shellcheck
smartmontools smartmontools
sqlite3 sqlite3
tailscale tailscale
tea-cli
) )
if [[ "$(df --output=fstype . | sed 1d)" == "btrfs" ]]; then
packages+=(snapper)
fi