mirror of
https://github.com/kou029w/dotfiles.git
synced 2025-01-31 06:18:00 +00:00
remove homebrew
This commit is contained in:
parent
4e44583388
commit
58b0034ac4
5 changed files with 8 additions and 58 deletions
16
.Brewfile
16
.Brewfile
|
@ -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
|
|
16
.profile
16
.profile
|
@ -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"
|
||||||
|
|
|
@ -13,5 +13,5 @@ sudo ./install
|
||||||
or
|
or
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
sudo ./install homebrew desktop
|
sudo ./install desktop
|
||||||
```
|
```
|
||||||
|
|
|
@ -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
|
|
|
@ -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
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue