Skip to content

Latest commit

 

History

History
54 lines (47 loc) · 1.46 KB

高效开发.md

File metadata and controls

54 lines (47 loc) · 1.46 KB

快捷键

Vim

  • Ctrl+p shell中上一个命令,或者 文本中移动到上一行
  • Ctrl+n shell中下一个命令,或者 文本中移动到下一行
  • Ctrl+r 往后搜索历史命令
  • Ctrl+s 往前搜索历史命令
  • Ctrl+f 光标前移
  • Ctrl+b 光标后退
  • Ctrl+a 到行首
  • Ctrl+e 到行尾
  • Ctrl+d 删除一个字符,删除一个字符,相当于通常的Delete键
  • Ctrl+h 退格删除一个字符,相当于通常的Backspace键
  • Ctrl+u 删除到行首
  • Ctrl+k 删除到行尾
  • Ctrl+l 类似 clear 命令效果
  • Ctrl+y 粘贴

browser(google chrome)

  • cmd + t
  • cmd + shift + t(Open Last Closed Tab)
  • cmd + n
  • cmd + w (Close the Active Right Away)
  • cmd + number (jump through tabs by tab index)
  • cmd + shift + n (Go Incognito Mode)
  • cmd + ->
  • cmd + <-
  • cmd + l focus the 'location bar'
  • cmd + option + l open the downloads page
  • cmd + shift + delete clear browser cach

Command Alias

common

alias cls="clear" alias nis="cnpm i --save" alias myip="curl http://ipecho.net/plain" alias su="sudo" alias bi="brew install" alias bci="brew cask install" alias tree="ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*//--/g' -e 's/^/ /' -e 's/-/|/'"

git

alias glg="git log --stat" alias gcm="git commit -m" alias gl="git pull" alias gst="git status" alias gss="git status -s" alias gcb="git checkout -b" alias gco="git checkout" alias gps="git push --set-upstream origin"

ReadMore