First things first !
sudo apt update
sudo apt upgradesudo apt-get install build-essential git| """想要继承JsonMixin类,类需要包含名为to_dict的方法;__init__方法需要接受关键字参数""" | |
| import json | |
| class JsonMixin(object): | |
| @classmethod | |
| def from_json(cls, data): | |
| kwargs = json.loads(data) | |
| return cls(**kwargs) | |
| def to_json(self): |
| bind R source-file ~/.tmux.conf ; display-message "Config reloaded.." | |
| # Use vim keybindings in copy mode | |
| setw -g mode-keys vi | |
| bind-key -t vi-copy v begin-selection | |
| bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy" | |
| # 状态栏 | |
| # 颜色 | |
| set -g status-bg black | |
| set -g status-fg white |