- Notifications
You must be signed in to change notification settings - Fork2
karl-cheung/mac
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
chsh -s /bin/zsh
chsh -s /bin/bash
写入文件取决于使用哪种 shell
vim~/.zshrc
export CLICOLOR=1export LSCOLORS=Exfxaxdxcxegedabagacad
source~/.zshrc
在使用一些其他来源的应用程序时,你可能需要以下操作显示任何来源以启动软件。
sudo spctl --master-disable
sudo spctl --master-enable
defaults write com.apple.finder AppleShowAllFiles -booltrue; killall Finder
defaults write com.apple.finder AppleShowAllFiles -boolfalse; 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/libsudo 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.comyes
如果不通过 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 = readauth-access = writepassword-db = passwdauthz-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_Storenode_modulesdistnpm-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
nvmalias default x.x.x
npm loginusername******you@example.comnpm whoami
npmset init-author-name'author name'npmset init-author-email'you@example.com'npmset init-license'MIT'npm config list
npm install -g nrmnrm ls
npm install -g cnpmyarn 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 stablesource /Users/username/.rvm/scripts/rvm
rvm list knownrvm install x.x.x
使用 jekyll 来生成你的静态博客。
gem install jekyll
brew install pyenvecho -e'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi'>>~/.bash_profilesource~/.bash_profile
pyenv install --listpyenv install x.x.xpyenv global x.x.xpyenvlocal x.x.x
TheMIT License.
About
☘️ 一份前端开发工程的装机清单 - mac。
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.