把 Caps Lock 變成智慧的 Control 以及 Escape :
- 單獨輕按一下就是 Escape 。
- 若按下時同時按著其他鍵,就會是 Control 。
這應該是 Vim 和 Emacs 的最佳解了!(Emacs? Bash 的快捷鍵就是 Emacs 系列的)
- Send Escape if you tap Caps Lock alone.
| # usage: python rearch.py <spec-that-resolves-to-noarch-package> | |
| # 1. creates a directory derived from the spec (replacing ':/=' with dashes) | |
| # 2. creates a conda recipe to build a python-version-specific package | |
| # 3. runs the conda recipe for PYTHON_VERSIONS | |
| # 4. runs conda-convert to obtain the other platforms | |
| # leaves everything in the given directory. | |
| import os | |
| import shutil | |
| import sys |
To remove a submodule you need to:
| #! /usr/bin/env ruby | |
| submods = Hash.new | |
| %x{git config -f .gitmodules --get-regexp '^submodule\..*\.(path|url)$'}.lines.each do |l| | |
| submodule, key, value = l.match(/^submodule\.(.*)\.(path|url)\s+(.*)$/)[1..3] | |
| submods[submodule] = Hash.new unless submods[submodule].is_a?(Hash) | |
| submods[submodule][key] = value | |
| end |