常用软件配置文件

1、.gitconfig

# This is Git's per-user configuration file.
[user]
name = 张文
email = zhangwen@ichunqiu.com
# Please adapt and uncomment the following lines:
# name = 长风
# email = draven@changfengdeMacBook-Pro.local
[color]
ui = auto
[color]
ui = auto
diff = auto
status = true
branch = auto
interactive = auto
log = true
[alias]
co = checkout
ci = commit
st = status
pl = pull
ps = push
df = diff
dt = difftool
l = log --stat
cp = cherry-pick
ca = commit -a
br = branch
lg = log --graph --all --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
[merge]
#summary = true
tool = vimdiff
[diff]
renames = copy
[status]
submodulesummary = -1
[mergetool "vimdiff"]
cmd = "vim --noplugin \"$PWD/$MERGED\" \
+\":split $PWD/$REMOTE\" +\":set buftype=nowrite\" \
+\":vertical diffsplit $PWD/$LOCAL\" +\":set buftype=nowrite\" \
+\":vertical diffsplit $PWD/$BASE\" +\":set buftype=nowrite\" \
+\":wincmd l\""
[format]
numbered = auto

2、.zshrc

# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH # Path to your oh-my-zsh installation.
export ZSH=/Users/draven/.oh-my-zsh # Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
ZSH_THEME="robbyrussell" # Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true" # Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true" # Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true" # Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13 # Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true" # Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true" # Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true" # Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true" # Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true" # Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy" # Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git) source $ZSH/oh-my-zsh.sh # User configuration # export MANPATH="/usr/local/man:$MANPATH" # You may need to manually set your language environment
# export LANG=en_US.UTF-8 # Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi # Compilation flags
# export ARCHFLAGS="-arch x86_64" # ssh
# export SSH_KEY_PATH="~/.ssh/rsa_id" # Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh" # pyenv
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)" alias pip_install='pip install -i http://pypi.doubanio.com/simple --trusted-host pypi.doubanio.com'

3、.vimrc

" Configuration file for vim
set modelines=0 " CVE-2007-2438 " Normally we use vim-extensions. If you want true vi-compatibility
" remove change the following statements
set nocompatible " Use Vim defaults instead of 100% vi compatibility
set backspace=2 " more powerful backspacing " Don't write backup file if vim is being called by "crontab -e"
au BufWrite /private/tmp/crontab.* set nowritebackup nobackup
" Don't write backup file if vim is being called by "chpass"
au BufWrite /private/etc/pw.* set nowritebackup nobackup set tabstop=4
set autoindent
syntax enable
syntax on set relativenumber

4、.ssh/config

Host	dev01
HostName 192.168.10.201
Port 22
User root Host 212
HostName 192.168.10.212
Port 22
User root Host 213
HostName 192.168.10.213
Port 22
User root Host 216
HostName 192.168.10.216
Port 22
User root Host 218
HostName 192.168.10.218
Port 22
User root Host 217
HostName 192.168.10.217
Port 22
User root Host arch
HostName 192.168.10.33
Port 22
User root Host centos
HostName 192.168.1.34
Port 22
User root

5、pyenv安装

# mac homebrew
brew update
sudo brew install pyenv # manual install
git clone https://github.com/yyuu/pyenv.git ~/.pyenv $ echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
$ echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
$ echo 'eval "$(pyenv init -)"' >> ~/.zshrc $ exec $SHELL

6、home brew安装

#官方提供的链接
ruby -e "$(curl --insecure -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" curl -LsSf http://github.com/mxcl/homebrew/tarball/master | sudo tar xvz -C/usr/local --strip 1 #卸载
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

7、oh-my-zsh安装

# install zsh
brew install zsh sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

8、解压软件 The Unarchiver

https://www.baidu.com/link?url=FHG2GRIPpBv5xXvVpbIOF56MbE0PlKtNA-pQTa9aNv4gC8b8YdUzO-DDfXTf9MpDNOqssANlRdBU3obeZORyZwwLAlFWncGRZmgmb9z3l7q&wd=&eqid=bcb46ddc006b61960000000258bfa667

最新文章

  1. 【转载】CSS 伪类-:before和:after
  2. JQ关于浏览器宽高的获取方式
  3. HDU 1864最大报销额 01背包问题
  4. iframe与frameset(转载)
  5. 第十七章、程序管理与 SELinux 初探
  6. maven tomcat1.7环境下构建javaweb 项目
  7. validate()的配置项
  8. cocos2d-x适配多分辨率
  9. 10.hibernate缓存机制详细分析(转自xiaoluo501395377)
  10. 数列分段Section II
  11. #416 Div2 C
  12. 1ci
  13. Ubuntu添加新分区
  14. XCode9和10编译Cordova报错toLowerCase of undefined解决方案
  15. JavaScript浏览器历史的语法小问题
  16. JDBC(6)—BeanUtils
  17. git常用命令二
  18. Flask学习-前言
  19. Android ormlite like() function is not working
  20. WINFORM小列子参考

热门文章

  1. 160304-02、JS 中如何判断null 和undefined
  2. Java中分页功能源码实例
  3. Ubuntu安装谷歌输入法或者搜狗
  4. Network Security Services If you want to add support for SSL, S/MIME, or other Internet security standards to your application, you can use Network Security Services (NSS) to implement all your securi
  5. Storm-源码分析-Topology Submit-Supervisor
  6. wordcount(C语言)
  7. 三.插入和查找MySQL记录 数据类型
  8. Linux命令(基础1)
  9. python爬虫系列(1)——一个简单的爬虫实例
  10. bat批处理异备文件、压缩文件