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

add cask packages

This commit is contained in:
Nebel 2023-08-08 21:18:23 +09:00
parent 2e583b2ae5
commit b82f68a44b
Signed by: nebel
GPG key ID: 79807D08C6EF6460
3 changed files with 31 additions and 11 deletions

View file

@ -9,10 +9,16 @@ brew "hadolint"
brew "jq" brew "jq"
brew "mdbook" brew "mdbook"
brew "mkcert" brew "mkcert"
brew "sqlite"
brew "rclone" brew "rclone"
brew "shellcheck" brew "shellcheck"
brew "sqlite"
brew "tea" brew "tea"
brew "ykman" brew "ykman"
brew "drone/drone/drone" brew "drone/drone/drone"
brew "oven-sh/bun/bun" brew "oven-sh/bun/bun"
if OS.mac?
cask "logseq"
cask "slack"
cask "visual-studio-code"
end

View file

@ -1,11 +1,20 @@
export EDITOR=nano export EDITOR=nano
export PATH="$HOME/.local/bin:$PATH" export PATH="$HOME/.local/bin:$PATH"
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:-}";
export DENO_INSTALL_ROOT="${HOME}/.local" export DENO_INSTALL_ROOT="${HOME}/.local"
[ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env" [ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env"
[ -n "$BASH_VERSION" ] && . "$HOME/.bashrc" [ -n "$BASH_VERSION" ] && . "$HOME/.bashrc"
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

View file

@ -8,9 +8,14 @@ function install_homebrew_packages() {
sudo --user="#$uid" \ sudo --user="#$uid" \
NONINTERACTIVE=1 \ NONINTERACTIVE=1 \
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)" bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
sudo --user="#$uid" \ if [[ -x /usr/local/bin/brew ]]; then
/home/linuxbrew/.linuxbrew/bin/brew bundle --global 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)$ ]] \ [[ $(uname -sm) =~ ^(Linux x86_64|Darwin x86_64)$ ]] &&
&& install_homebrew_packages install_homebrew_packages