mirror of
https://github.com/NohamR/knowledge-kit.git
synced 2026-05-24 20:00:37 +00:00
docs: 命令行快捷指令
This commit is contained in:
@@ -34,9 +34,12 @@ alias pru='pod repo update'
|
||||
alias pi='pod install'
|
||||
alias pu='pod update'
|
||||
alias piu='pod install --repo-update'
|
||||
alias repoanalysis='specbackwarddependency /Users/liubinpeng/.cocoapods/repos/XXCompany_specs'
|
||||
alias plint='pod lib lint --sources=git@git.***-inc.com:client/App-Specs.git,git@git.***-inc.com:client/CocoaPods-Specs.git --allow-warnings --verbose --use-libraries'
|
||||
alias repoanalysis='specbackwarddependency /Users/lbp/.cocoapods/repos/51xianqu-xq_specs'
|
||||
alias plint='pod lib lint --sources=git@gitlab.qima-inc.com:AppLib/CocoaPodsSpecs.git,git@gitlab.qima-inc.com:AppLib/RenRenPodspecs.git --allow-warnings --verbose --use-libraries'
|
||||
alias pflutterlint='pod lib lint --sources=git@gitlab.qima-inc.com:AppLib/CocoaPodsSpecs.git,git@gitlab.qima-inc.com:AppLib/RenRenPodspecs.git --allow-warnings --verbose --use-libraries'
|
||||
alias prepopush='pod repo push qima-inc-applib-renrenpodspecs OmegaUtils.podspec --verbose --allow-warnings --use-libraries'
|
||||
alias errorShow=' >1.log 2>&1'
|
||||
alias podspecDir='cd /Users/lbp/.cocoapods/repos/qima-inc-applib-renrenpodspecs/'
|
||||
# git 相关指令
|
||||
alias gck='git checkout'
|
||||
alias gm='git merge'
|
||||
@@ -56,18 +59,33 @@ alias ns='npm start'
|
||||
alias ni='npm install'
|
||||
alias nb='npm run build'
|
||||
alias nig='npm install -g '
|
||||
alias nt='npm test'
|
||||
alias ynpm="npm --registry=http://registry.npm.qima-inc.com --disturl=http://npm.taobao.org/mirrors/node"
|
||||
|
||||
# Electron
|
||||
export ELECTRON_MIRROR="https://npm.taobao.org/mirrors/electron/"
|
||||
|
||||
# PC收银
|
||||
alias deploy='make publish_render args="-g -s"'
|
||||
|
||||
# Vue 相关命令
|
||||
alias vc='vue-init webpack' # (vue-init webpack test1)用法 vc test1
|
||||
|
||||
# React
|
||||
# React
|
||||
alias rc='create-react-app' #(create-react-app todolist)用法 rc todolist
|
||||
|
||||
# React Native 命令
|
||||
alias rnc='react-native init' #(react-native init todolist)用法 rnc todolist
|
||||
alias rnc='react-native init' #(react-native init todolist)用法 rnc todolist
|
||||
alias RNRelease='react-native bundle --entry-file index.js --platform ios --dev false --bundle-output release_ios/main.jsbundle --assets-dest release_iOS --sourcemap-output release_ios/index.ios.map;' # RN 打 Release 包
|
||||
|
||||
# Flutter
|
||||
alias flr='flutter run'
|
||||
alias flCPlugin='flutter create --org com.youzan.mobile.plugin --template=plugin '
|
||||
alias flCPackage='flutter create --org com.youzan.mobile.plugin --template=package '
|
||||
alias fbiOS='flutter build ios'
|
||||
alias fc='flutter clean'
|
||||
alias fptest='flutter packages pub publish --dry-run'
|
||||
alias fpub='flutter packages pub publish --server http://flutterpub.qa.s.qima-inc.com'
|
||||
|
||||
# 终端打开应用程序
|
||||
## 浏览器打开
|
||||
alias OpenWithSafari='open -a "/Applications/Safari.app" '
|
||||
@@ -78,44 +96,46 @@ alias OpenMDPreview='open -a "/Applications/Typora.app" '
|
||||
alias OpenDB='open -a "/Applications/DB Browser for SQLite.app" '
|
||||
## 用 SourceTree 打开工程
|
||||
alias openSourceTree='open -a "/Applications/Sourcetree.app/" '
|
||||
# Flutter 环境变量
|
||||
# 打开科学上网工具
|
||||
alias openNetworkProxy='open -a "/Applications/弄子里.app"'
|
||||
|
||||
# Electron (打开 Eelectron 工程)
|
||||
alias oelec='npx electron .'
|
||||
#Flutter 镜像
|
||||
|
||||
export PUB_HOSTED_URL=https://pub.flutter-io.cn
|
||||
export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
|
||||
export PATH=/Users/liubinpeng/flutter/bin:$PATH
|
||||
|
||||
|
||||
# Android SDK 路径
|
||||
export PATH=/Users/lbp/flutter/bin:$PATH
|
||||
|
||||
# Android Studio SDK 路径
|
||||
export ANDROID_HOME=~/Library/Android/sdk
|
||||
export PATH=${PATH}:${ANDROID_HOME}/emulator
|
||||
export PATH=${PATH}:${ANDROID_HOME}/tools
|
||||
export PATH=${PATH}:${ANDROID_HOME}/platform-tools
|
||||
|
||||
# 用 Android Studio 打开 Android 工程
|
||||
alias openAndroidProject="open -a /Applications/Android\ Studio.app ./"
|
||||
|
||||
# iOS 模拟器开启
|
||||
alias iOSSimulator='open -a Simulator'
|
||||
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
|
||||
# Node Version Manager
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
|
||||
export PATH="$PATH:$HOME/.rvm/bin"
|
||||
|
||||
export N_PREFIX=/usr/local/bin/node #根据你的安装路径而定
|
||||
export PATH=$N_PREFIX/bin:$PATH
|
||||
export PATH=/Users/liubinpeng/Desktop/Github/GitWorkflow/bin:$PATH
|
||||
|
||||
export PATH=/Users/lbp/Desktop/Github/GitWorkflow/bin:$PATH
|
||||
|
||||
# chrome 源码探究
|
||||
# export PATH=/Users/liubinpeng/Desktop/Tech-Research/iOS/depot_tools:$PATH
|
||||
|
||||
# export PATH=/Users/lbp/Desktop/Tech-Research/iOS/depot_tools:$PATH
|
||||
|
||||
# 指定 pyhton 版本
|
||||
# Setting PATH for Python 2.7
|
||||
@@ -127,34 +147,29 @@ PATH="/usr/local/Cellar/python/3.7.4/bin:${PATH}"
|
||||
alias python='/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7'
|
||||
alias python3='/usr/local/Cellar/python/3.7.4/bin/python3'
|
||||
|
||||
|
||||
|
||||
# 禁止终端利用 homebrew 安装插件时候的自动更新
|
||||
|
||||
alias disableHomebrewUpdate="export HOMEBREW_NO_AUTO_UPDATE=true"
|
||||
|
||||
# 终端翻墙相关的设置(开关开启后稍微有点延迟)
|
||||
|
||||
# 终端查找资料相关的设置(开关开启后稍微有点延迟)
|
||||
|
||||
function proxy_off(){
|
||||
function proxy_off() {
|
||||
unset ALL_PROXY
|
||||
echo -e "已关闭学习模式"
|
||||
echo -e "已关闭代理"
|
||||
}
|
||||
|
||||
function proxy_on(){
|
||||
function proxy_on() {
|
||||
export ALL_PROXY=socks5://127.0.0.1:1081
|
||||
echo -e "已开启学习模式"
|
||||
echo -e "已开启代理"
|
||||
}
|
||||
|
||||
|
||||
# PHP 包管理工具,composer
|
||||
export PATH="~/.composer/vendor/bin:$PATH"
|
||||
|
||||
# python 版本切换工具,全局生效
|
||||
# python 版本切换工具,全局生效
|
||||
export PYENV_ROOT=~/.pyenv
|
||||
export PATH=$PYENV_ROOT/shims:$PATH
|
||||
|
||||
|
||||
# 效率
|
||||
# 统计当前文件夹下文件的数量
|
||||
alias showFilesCount='ls -l |grep "^-"|wc -l'
|
||||
|
||||
@@ -126,7 +126,7 @@
|
||||
* [24、Chrome 调试技巧](https://github.com/FantasticLBP/knowledge-kit/blob/master/Chapter2%20-%20Web%20FrontEnd/2.24.md)
|
||||
* [25、大前端动画](https://github.com/FantasticLBP/knowledge-kit/blob/master/Chapter2%20-%20Web%20FrontEnd/2.25.md)
|
||||
* [26、Linux 下安装 Node](https://github.com/FantasticLBP/knowledge-kit/blob/master/Chapter2%20-%20Web%20FrontEnd/2.26.md)
|
||||
* [27、浏览器不通窗口之间的通信之道](https://github.com/FantasticLBP/knowledge-kit/blob/master/Chapter2%20-%20Web%20FrontEnd/2.27.md)
|
||||
* [27、浏览器不同窗口之间的通信之道](https://github.com/FantasticLBP/knowledge-kit/blob/master/Chapter2%20-%20Web%20FrontEnd/2.27.md)
|
||||
* [28、神器Puppeteer](https://github.com/FantasticLBP/knowledge-kit/blob/master/Chapter2%20-%20Web%20FrontEnd/2.28.md)
|
||||
* [29、从Vue.js谈谈前端开发的技术栈演变](https://github.com/FantasticLBP/knowledge-kit/blob/master/Chapter2%20-%20Web%20FrontEnd/2.29.md)
|
||||
* [30、Javascript 常用工具封装](https://github.com/FantasticLBP/knowledge-kit/blob/master/Chapter2%20-%20Web%20FrontEnd/2.30.md)
|
||||
@@ -216,7 +216,7 @@
|
||||
* [5、猫粮对你猫咪的牙齿做了什么?](https://github.com/FantasticLBP/knowledge-kit/blob/master/Chapter9%20-%20Ragdoll/9.5.md)
|
||||
* [6、新猫到家的注意事项](https://github.com/FantasticLBP/knowledge-kit/blob/master/Chapter9%20-%20Ragdoll/9.6.md)
|
||||
* [7、猫咪健康](https://github.com/FantasticLBP/knowledge-kit/blob/master/Chapter9%20-%20Ragdoll/9.7.md)
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user