Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

☘️ 一份前端开发工程的装机清单 - mac。

License

NotificationsYou must be signed in to change notification settings

karl-cheung/mac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

目录

shell

zsh 与 bash 切换

zsh
chsh -s /bin/zsh
bash
chsh -s /bin/bash

文件列表颜色

写入文件取决于使用哪种 shell

vim~/.zshrc
export CLICOLOR=1export LSCOLORS=Exfxaxdxcxegedabagacad
source~/.zshrc

允许从任何来源下载的应用

在使用一些其他来源的应用程序时,你可能需要以下操作显示任何来源以启动软件。

显示
sudo spctl --master-disable
隐藏
sudo spctl --master-enable

Finder 隐藏属性的文件夹的显示与隐藏

显示
defaults write com.apple.finder AppleShowAllFiles -booltrue; killall Finder
隐藏
defaults write com.apple.finder AppleShowAllFiles -boolfalse; killall Finder

修改文件权限

权限 777
sudo chmod 777 file
权限 444
sudo chmod 444 file

查看本机 ip 信息

curl cip.cc

应用程序

Homebrew

你可能需要先安装 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)/*

一些推荐的 App Store

# 免费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

编辑器

Visual Studio Code

[Settings Sync]

https://code.visualstudio.com/docs/editor/settings-sync

git

ssh

你可能需要执行xcode-select --install

github 与 gitlab 共同生效
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

Access token

如果不通过 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

svn 命令行

你可能需要先安装 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
checkout

将服务器中 code 仓库的代码 checkout 到本地当前目录下。

svn checkout<repository_url>

or

svn checkout<repository_url><local_folder_name>
全局忽略文件
vim~/.subversion/config
取消 global-ignores 行注释并追加以下可选项
.DS_Storenode_modulesdistnpm-debug.log*yarn-debug.log*yarn-error.log*# Editor directories and files.idea.vscode*.suo*.ntvs**.njsproj*.sln

nvm node npm

nvm

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh| bash

node

nvm ls-remote
nvm install x.x.x
设置默认版本
nvmalias default x.x.x

npm

npm 登录
npm loginusername******you@example.comnpm whoami
npm 配置
npmset init-author-name'author name'npmset init-author-email'you@example.com'npmset init-license'MIT'npm config list
使用 nrm 管理源
npm install -g nrmnrm ls
使用 cnpm 与 tyarn
npm install -g cnpmyarn global add tyarn
一些全局模块
rollup vite vue-cli create-react-app ant-design-pro taro

rvm ruby jekyll

rvm

你可能需要先安装 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

ruby

rvm list knownrvm install x.x.x

jekyll 安装

使用 jekyll 来生成你的静态博客。

gem install jekyll

pyenv python

pyenv

brew install pyenvecho -e'if command -v pyenv 1>/dev/null 2>&1; then\n  eval "$(pyenv init -)"\nfi'>>~/.bash_profilesource~/.bash_profile

python

pyenv install --listpyenv install x.x.xpyenv global x.x.xpyenvlocal x.x.x

License

TheMIT License.

About

☘️ 一份前端开发工程的装机清单 - mac。

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp