chsh -s /bin/zsh
chsh -s /bin/bash
写入文件取决于使用哪种 shell
vim ~/.zshrc
export CLICOLOR=1
export LSCOLORS=Exfxaxdxcxegedabagacad
source ~/.zshrc
在使用一些其他来源的应用程序时,你可能需要以下操作显示任何来源以启动软件。
sudo spctl --master-disable
sudo spctl --master-enable
defaults write com.apple.finder AppleShowAllFiles -bool true; killall Finder
defaults write com.apple.finder AppleShowAllFiles -bool false; killall Finder
sudo chmod 777 file
sudo chmod 444 file
curl cip.cc
你可能需要先安装 Xcode。
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install nginx mysql yarn
brew install baidunetdisk charles cheatsheet clash-for-windows cursor dingtalk forklift google-chrome hbuilderx iterm2 maczip microsoft-remote-desktop neteasemusic pdfelement postman qq qqmusic snipaste switchhosts tencent-meeting visual-studio-code wechat wechatwebdevtools wechatwork
如果你是 macOS High Sierra 用户,通过 brew 安装应用前你可能需要以下操作。
sudo mkdir /usr/local/Cellar && sudo mkdir /usr/local/opt && sudo mkdir /usr/local/include && sudo mkdir /usr/local/Frameworks && sudo mkdir /usr/local/lib
sudo chown -R $(whoami) $(brew --prefix)/*
# 免费
Xcode、Keynote、Numbers、Pages、GIF Brewery 3、OhMyStar2、Yummy FTP Pro、iCopy
# 付费
Cornerstone、Micrisift、Office、Zoom It、Final Cut Pro、Adobe Photoshop CC、Navicat、Premium、FileZilla、Sketch
你可能需要执行
xcode-select --install
。
ssh-keygen -t rsa -C 'you@example.com'
cat ~/.ssh/id_rsa.pub
github/gitlab 添加相应密钥
ssh-keygen -t rsa -C 'you@example.com'
id_rsa_*
cat ~/.ssh/id_rsa_*.pub
vim ~/.ssh/config
# github
Host github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
# gitlab
Host gitlab.*.com
HostName gitlab.*.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa_*
ssh -T git@github.com
yes
如果不通过 ssh 连接,这是一个可选方案。
git clone https://<username>:<private-token>@myrepo.git
git config --global user.name 'your name'
git config --global user.email 'you@example.com'
git config user.name 'your name'
git config user.email 'you@example.com'
你可能需要先安装 svn。
$ brew install svn
。
mkdir /Users/username/example && cd /Users/username/example
svnadmin create subversion
cd subversion/conf && vim svnserve.conf
# 取消下列配置项注释
anon-access = read
auth-access = write
password-db = passwd
authz-db = authz
vim passwd
[users]
youraccount=yourpassword
vim authz
[groups]
groups = youraccount
@group = rw
svnserve -d -r /Users/username/example
将服务器中 code 仓库的代码 checkout 到本地当前目录下。
svn checkout <repository_url>
or
svn checkout <repository_url> <local_folder_name>
vim ~/.subversion/config
.DS_Store
node_modules
dist
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
nvm ls-remote
nvm install x.x.x
nvm alias default x.x.x
npm login
username
******
you@example.com
npm whoami
npm set init-author-name 'author name'
npm set init-author-email 'you@example.com'
npm set init-license 'MIT'
npm config list
npm install -g nrm
nrm ls
npm install -g cnpm
yarn global add tyarn
rollup vite vue-cli create-react-app ant-design-pro taro
你可能需要先安装 GnuPG。
$ brew install gnupg gnupg2
。
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 7D2BAF1CF37B13E2069D6956105BD0E739499BDB
\curl -sSL https://get.rvm.io | bash -s stable
source /Users/username/.rvm/scripts/rvm
rvm list known
rvm install x.x.x
使用 jekyll 来生成你的静态博客。
gem install jekyll
brew install pyenv
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile
source ~/.bash_profile
pyenv install --list
pyenv install x.x.x
pyenv global x.x.x
pyenv local x.x.x
The MIT License.