| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Credit:
* Stackoverflow: Check if a program exists from a Bash script
Credit: https://stackoverflow.com/a/677212/4856091
|
| |
|
|
|
|
| |
Credit: https://wiki.archlinux.org/index.php/GnuPG
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Let the terminal application to set the appropriate terminal type,
e.g., tmux will set its TERM to "screen-256color" which will work
well with ZSH special key bindings.
|
|
|
|
| |
Workaround the special key (e.g., Home, End) bindings problem in zsh
|
|
|
|
| |
Credit: http://zshwiki.org/home/zle/bindkeys
|
|
|
|
|
|
| |
References:
* https://github.com/syl20bnr/spacemacs/issues/6197
* https://github.com/syl20bnr/spacemacs/issues/4816
|
| |
|
| |
|
|
|
|
|
| |
Credit:
https://github.com/robbyrussell/oh-my-zsh/blob/master/lib/key-bindings.zsh
|
| |
|
| |
|
|
|
|
|
| |
* Add option "--untracked-files=no" to "git status"
* Do not check the ahead status
|
| |
|
| |
|
|
|
|
| |
Credit: http://doc.norang.ca/org-mode.html
|
| |
|
| |
|
|
|
|
|
| |
The environment variable "LC_CTYPE=zh_CN.UTF-8" is required to be able to use
Fcitx inside Emacs (GUI).
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
NOTE:
Explicitly set the orders for Noto CJK fonts (SC, TC, JP, KR), in order
to get rid of "LC_CTYPE" environment variable.
Therefore, the preferred English fonts (e.g., Source Code Pro, Source
Sans Pro) are by default used, avoiding the Chinese fonts being prepend
at the beginning.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
NOTE
----
FontConfig will check the language against system locales, in order
to prepend/enable corresponding fonts.
For example, Noto CJK font provides multiple variants for the same glyph
regions, e.g., "Noto Sans CJK JP" and "Noto Sans CJK SC" may *both* be
selected/matched to display Chinese, and the former may even get
precedence which is unexpected (see also: Han Unification [1]).
Therefore, "LC_CTYPE=zh_CN.UTF-8" should be added back, and explicitly
select the wanted/correct font (e.g., "Noto Sans CJK SC") for specific
language (e.g., "zh-cn").
[1] https://en.wikipedia.org/wiki/Han_unification
|
| |
|
|
|
|
|
|
|
|
|
| |
Noto: http://github.com/googlei18n/noto
Noto-CJK: http://github.com/googlei18n/noto-cjk
Credit:
Fedora packages: google-noto-fonts, google-noto-cjk-fonts
These configurations are almost taken from the above two packages.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This user font configuration file should be placed at:
~/.config/fontconfig/fonts.conf
(original `~/.fonts.conf' is deprecated)
and the user fonts should locate at:
~/.local/share/fonts
(original `~/.fonts' will be deprecated)
NOTE:
The "LC_CTYPE" environment variable should be remove, because it
affects the behaviors of FontConfig!
With "LC_CTYPE=zh_CN.UTF-8", a Chinese font (or a font with Chinese
language support) is always preprended to the generic font families
(i.e., serif, sans-serif, monospace), which overrides the
<alias><prefer> configurations.
It is also tested that Fcitx works OK without "LC_CTYPE=zh_CN.UTF-8"
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Major cleanup:
- Re-organize the settings
- Some style/comments updates
- New functions: "_exists()" and "_running()"
- Remove "gpg-agent --daemon"
- Remove "OSFONTDIR"
* Add "umask" to "027" to be more private!
* Add "LC_MONETARY=zh_CN.UTF-8"
* Remove "LC_CTYPE", which affects the behaviors of FontConfig!
(see below note)
NOTE:
With "LC_CTYPE=zh_CN.UTF-8", a Chinese font (or a font with Chinese
language support) is always preprended to the generic font families
(i.e., serif, sans-serif, monospace), which overrides the
<alias><prefer> configurations.
It is also tested that Fcitx works OK without "LC_CTYPE=zh_CN.UTF-8"
|
| |
|
|
|
|
| |
Credit: http://stackoverflow.com/a/28484419
|
| |
|
| |
|
|
|
|
|
| |
Credit:
M+ fonts: http://mplus-fonts.osdn.jp/
|
| |
|
|
|
|
| |
For the "javascript" layer, also install NPM packages "tern" and "eslint"
|
|
|
|
|
|
| |
Credit:
* https://github.com/glenpike/npm-g_nosudo
* https://github.com/sindresorhus/guides/blob/master/npm-global-without-sudo.md
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|