把 Caps Lock 變成智慧的 Control 以及 Escape :
- 單獨輕按一下就是 Escape 。
- 若按下時同時按著其他鍵,就會是 Control 。
這應該是 Vim 和 Emacs 的最佳解了!(Emacs? Bash 的快捷鍵就是 Emacs 系列的)
- Send Escape if you tap Caps Lock alone.
To remove a submodule you need to:
sudo apt-get install \
cmake cmake-data libcairo2-dev libxcb1-dev libxcb-ewmh-dev \
libxcb-icccm4-dev libxcb-image0-dev libxcb-randr0-dev \
libxcb-util0-dev libxcb-xkb-dev pkg-config python-xcbgen \
xcb-proto libxcb-xrm-dev i3-wm libasound2-dev libmpdclient-dev \
#! /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 |
# 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 |