[关闭]
@zhangzhen 2017-03-25T11:30:03.000000Z 字数 1079 阅读 1264

Mac配置指南

tool


  1. #!/bin/sh
  2. # homebrew
  3. /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  4. # zsh
  5. brew install zsh;
  6. brew install zsh-completions;
  7. chsh -s /bin/zsh;
  8. # on-my-zsh
  9. sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  10. # show hidden files
  11. defaults write com.apple.finder AppleShowAllFiles YES
  12. # soft link config files
  13. for f in ./.*; do echo $f; done
  14. for f in ./.*; do ln -sf .config/dotfiles/$f ~/$f; done
  15. # git alias
  16. git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
  17. git config --global alias.lgs "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --stat"
  18. git config alias.mylg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --author=zhangzhen"
  19. git config alias.mylgs "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --author=zhangzhen --sata"
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注