mirror of
https://github.com/kou029w/dotfiles.git
synced 2025-01-17 23:55:07 +00:00
add cask packages
This commit is contained in:
parent
2e583b2ae5
commit
b82f68a44b
3 changed files with 31 additions and 11 deletions
|
@ -9,10 +9,16 @@ brew "hadolint"
|
|||
brew "jq"
|
||||
brew "mdbook"
|
||||
brew "mkcert"
|
||||
brew "sqlite"
|
||||
brew "rclone"
|
||||
brew "shellcheck"
|
||||
brew "sqlite"
|
||||
brew "tea"
|
||||
brew "ykman"
|
||||
brew "drone/drone/drone"
|
||||
brew "oven-sh/bun/bun"
|
||||
|
||||
if OS.mac?
|
||||
cask "logseq"
|
||||
cask "slack"
|
||||
cask "visual-studio-code"
|
||||
end
|
||||
|
|
21
.profile
21
.profile
|
@ -1,11 +1,20 @@
|
|||
export EDITOR=nano
|
||||
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"
|
||||
[ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env"
|
||||
[ -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
|
||||
|
|
|
@ -8,9 +8,14 @@ function install_homebrew_packages() {
|
|||
sudo --user="#$uid" \
|
||||
NONINTERACTIVE=1 \
|
||||
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
|
||||
sudo --user="#$uid" \
|
||||
/home/linuxbrew/.linuxbrew/bin/brew bundle --global
|
||||
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)$ ]] \
|
||||
&& install_homebrew_packages
|
||||
[[ $(uname -sm) =~ ^(Linux x86_64|Darwin x86_64)$ ]] &&
|
||||
install_homebrew_packages
|
||||
|
|
Loading…
Add table
Reference in a new issue