mirror of
https://github.com/kou029w/dotfiles.git
synced 2025-01-18 16:07:59 +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 "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
|
||||||
|
|
21
.profile
21
.profile
|
@ -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
|
||||||
|
|
|
@ -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)"
|
||||||
|
if [[ -x /usr/local/bin/brew ]]; then
|
||||||
|
sudo --user="#$uid" \
|
||||||
|
/usr/local/bin/brew bundle --global
|
||||||
|
else
|
||||||
sudo --user="#$uid" \
|
sudo --user="#$uid" \
|
||||||
/home/linuxbrew/.linuxbrew/bin/brew bundle --global
|
/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
|
||||||
|
|
Loading…
Add table
Reference in a new issue