Skip to main content

Useful Commands

· One min read

This is a collection of useful commands that I often use.

# set for all applications
sudo xattr -dr com.apple.quarantine /Applications/name.app

# set proxy for Git
git config --global http.proxy http://127.0.0.1:8080
git config --global https.proxy http://127.0.0.1:8080

# unset proxy for Git
git config --global --unset http.proxy
git config --global --unset https.proxy

# set proxy for zsh
echo 'export all_proxy="http://127.0.0.1:8080"' >> ~/.zprofile

# set proxy for bash
echo 'export http_proxy="127.0.0.1:7890";export https_proxy=$http_proxy' >> ~/.bashrc
EOF