This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
_argc_script() { | |
local argcfile cur opts | |
cur="${COMP_WORDS[COMP_CWORD]}" | |
COMPREPLY=() | |
argcfile=$(which ${COMP_WORDS[0]}) | |
if [ $? != 0 ]; then | |
return 0 | |
fi | |
opts=$(argc --argc-compgen "$argcfile" ${COMP_WORDS[@]:1} 2>/dev/null) | |
COMPREPLY=( $(compgen -W "${opts}" -- "${cur}") ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget -O /tmp/YaHei.Consolas.1.12.zip https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/uigroupcode/YaHei.Consolas.1.12.zip | |
unzip /tmp/YaHei.Consolas.1.12.zip | |
sudo mkdir -p /usr/share/fonts/consolas | |
sudo mv YaHei.Consolas.1.12.ttf /usr/share/fonts/consolas/ | |
sudo chmod 644 /usr/share/fonts/consolas/YaHei.Consolas.1.12.ttf | |
cd /usr/share/fonts/consolas | |
sudo mkfontscale && sudo mkfontdir && sudo fc-cache -fv |