git clone <repo>
git@github.com:Aobeef/Document.git
https://github.com/Aobeef/Document.git
/path/to/repository
git remote add <name> <repo>
git commit --amend
[user]
email = con@loli.lu
name = magine
[core]
excludesfile = /Users/magine/.gitignore_global
# editor = /Users/magine/bin/vim
compression = 0
[alias]
last = log -1 HEAD -p
open = !open_repo
upstream = !sh -c 'git remote add upstream "${1}"' -
refresh = !sh -c 'git fetch "${1:-upstream}" && git rebase "${1:-upstream}/${2:-master}"' -
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[hub]
host = github.com
unbind-key C-b
set-option -g prefix C-v
bind r source-file ~/.tmux.conf \; display-message "Config reloaded"
bind L resize-pane -L 10 # 向左扩展
bind R resize-pane -R 10 # 向右扩展
bind K resize-pane -U 5 # 向上扩展
bind J resize-pane -D 5 # 向下扩展
# 自动打开当前目录
bind '"' split-window -c '#{pane_current_path}'
bind '%' split-window -h -c '#{pane_current_path}'
# vim风格拷贝键位
# bind Escape copy-mode # does not work????
bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send -X copy-selection
set-window-option -g mode-keys vi
# 使用了系统的剪贴板
# 恢复用户空间
set -g default-command "reattach-to-user-namespace -l /bin/zsh"
# 修复颜色
set -g default-terminal "screen-256color-bce"
# plugins
run-shell /Users/magine/.tmux/tmux-yank/yank.tmux
https://gist.github.com/Ma233/beb9b0de0c330ffaed7f