scripts/macos-first-install.sh
2026-01-03 15:47:32 +03:00

54 lines
1.4 KiB
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
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Installing zsh-autosuggestions plugin
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# Writing .zshrc file
cat <<EOF > ~/.zshrc
# Basics
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="murilasso"
plugins=(git zsh-autosuggestions)
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
echo "✅ Ohmyzsh installed, .zshrc created, zsh-autosuggestions installed"
# Installing neovim and config
brew install neovim
mkdir -p ~/.config/nvim
cat <<EOF > ~/.config/nvim/init.lua
vim.cmd("set expandtab")
vim.cmd("set tabstop=2")
vim.cmd("set softtabstop=2")
vim.cmd("set shiftwidth=2")
vim.cmd("set number relativenumber")
vim.cmd("highlight Normal guibg=transparent")
vim.opt.clipboard = "unnamedplus"
EOF
echo "✅ Neovim installed, config written (~/.config/nvim/init.lua)"
# Installing obsidian, figma, firefox
brew install --cask obsidian
echo "✅ Obsidian installed"
brew install --cask figma
echo "✅ Figma installed"
brew install --cask firefox
echo "✅ Firefox installed"