remove brew plugin

This commit is contained in:
cupcakearmy 2022-11-09 13:12:37 +01:00
parent b79c09c5d3
commit d8b137e382
No known key found for this signature in database
GPG Key ID: 3235314B4D31232F
5 changed files with 27 additions and 15 deletions

3
.gitmodules vendored
View File

@ -2,6 +2,3 @@
path = dotbot path = dotbot
url = https://github.com/anishathalye/dotbot url = https://github.com/anishathalye/dotbot
ignore = dirty ignore = dirty
[submodule "plugins/dotbot-brew"]
path = plugins/dotbot-brew
url = https://github.com/d12frosted/dotbot-brew.git

View File

@ -0,0 +1,3 @@
function n --wraps='pnpm env use --global' --description 'alias n pnpm env use --global'
pnpm env use --global $argv;
end

29
install
View File

@ -12,13 +12,32 @@ cd "${BASEDIR}"
git -C "${DOTBOT_DIR}" submodule sync --quiet --recursive git -C "${DOTBOT_DIR}" submodule sync --quiet --recursive
git submodule update --init --recursive git submodule update --init --recursive
platform="$(uname -s)"
if [[ $platform == "Darwin" ]]; then
# Brew
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" --plugin-dir plugins/dotbot-brew -c "${CONFIG}" "${@}"
else
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}" "${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"
# Own Stuff
platform="$(uname -s)"
function uninstalled() {
if which $1 >/dev/null; then
return 1
else
return 0
fi fi
}
# PNPM
if uninstalled pnpm; then
curl -fsSL https://get.pnpm.io/install.sh | sh -
fi
# Brew
if [[ $platform == "Darwin" ]]; then
if uninstalled brew; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi
brew bundle --file ./files/Brewfile
fi
# NeoVim & Vim Plugins https://github.com/junegunn/vim-plug # NeoVim & Vim Plugins https://github.com/junegunn/vim-plug
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

View File

@ -16,9 +16,3 @@
~/.config/key-mapper: files/key-mapper ~/.config/key-mapper: files/key-mapper
~/.gitignore_global: files/git/gitignore_global ~/.gitignore_global: files/git/gitignore_global
~/.tmux.conf: files/tmux.conf ~/.tmux.conf: files/tmux.conf
- shell:
- [git submodule update --init --recursive, Installing submodules]
- brewfile:
- files/Brewfile

@ -1 +0,0 @@
Subproject commit 0f8c541d5ca06db89337d561de3e1d1fdeb030cb