Skip to content

Instantly share code, notes, and snippets.

@tanapoln
Last active June 15, 2024 09:32
Show Gist options
  • Save tanapoln/aa0b5a7dfc368f4dee15478f39701b9c to your computer and use it in GitHub Desktop.
Save tanapoln/aa0b5a7dfc368f4dee15478f39701b9c to your computer and use it in GitHub Desktop.
Setup my mac osx
#!/usr/bin/env bash
set -e
#install homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
/opt/homebrew/bin/brew install autoconf automake bash bison coreutils curl direnv fish freetype gd gettext git icu4c krb5 libedit libiconv libjpeg libpng libxml2 libzip mas pkg-config re2c wget zlib libsodium imagemagick gmp oniguruma mise libpq argon2
/opt/homebrew/bin/brew install docker docker-compose kubectl pyenv hey jq ffmpeg openssl@1.1
/opt/homebrew/bin/brew install --cask visual-studio-code linearmouse iterm2 wrap google-chrome jetbrains-toolbox karabiner-elements vlc lens wireshark pgadmin4 1password 1password-cli proxyman
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.config/fish/config.fish
eval "$(/opt/homebrew/bin/brew shellenv)"
sudo echo /opt/homebrew/bin/fish >> /etc/shells
chsh -s /opt/homebrew/bin/fish
echo 'mise activate fish | source' >> ~/.config/fish/config.fish
/opt/homebrew/bin/fish -c 'fish_add_path /opt/homebrew/opt/m4/bin'
#install https://mise.jdx.dev
MISE_TOOLS="nodejs golang php@8.3.6 java"
for val in ${MISE_TOOLS}; do
mise use -g -y $val
done
#setting osx
#disable elastic scrolling
defaults write -g NSScrollViewRubberbanding -int 0
#install apps from appstore
#magnet
mas install 441258766
mkdir -p ~/.config/direnv
tee -a ~/.config/direnv/direnv.toml <<EOT
[global]
load_dotenv=true
EOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment