macos script fix

This commit is contained in:
vlnko 2026-01-03 15:12:11 +03:00
parent 86e4afe721
commit 29fa093507

View File

@ -1,6 +1,18 @@
#!/bin/bash #!/bin/bash
# Installing homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
echo "✅ Homebrew installed"
# Installing z
brew install z
echo "✅ Z installed"
# Installing ohmyzsh # Installing ohmyzsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
@ -8,21 +20,23 @@ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/too
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
cat <<EOF > ~/.zshrc cat <<EOF > ~/.zshrc
# Basics
export ZSH="$HOME/.oh-my-zsh" export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="murilasso" ZSH_THEME="murilasso"
plugins=(git zsh-autosuggestions) plugins=(git zsh-autosuggestions)
source $ZSH/oh-my-zsh.sh source $ZSH/oh-my-zsh.sh
# Aliases
alias drs="python3 manage.py runserver"
alias dea=". env/bin/activate"
# z
. /opt/homebrew/etc/profile.d/z.sh
EOF EOF
echo "✅ Ohmyzsh installed, .zshrc created, zsh-autosuggestions installed"
# Installing homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# Installing neovim and config # Installing neovim and config
brew install neovim brew install neovim
echo "✅ Neovim installed"
mkdir -p ~/.config/nvim mkdir -p ~/.config/nvim
@ -35,11 +49,14 @@ vim.cmd("set number relativenumber")
vim.cmd("highlight Normal guibg=transparent") vim.cmd("highlight Normal guibg=transparent")
vim.opt.clipboard = "unnamedplus" vim.opt.clipboard = "unnamedplus"
EOF EOF
echo "✅ Config written (~/.config/nvim/init.lua)" echo "✅ Neovim installed, config written (~/.config/nvim/init.lua)"
# Installing obsidian, figma, firefox # Installing obsidian, figma, firefox
brew install --cask obsidian brew install --cask obsidian
echo "✅ Obsidian installed"
brew install --cask figma brew install --cask figma
echo "✅ Figma installed"
brew install --cask firefox brew install --cask firefox
echo "✅ Firefox installed"