- download: https://github.com/goreliu/wsl-terminal/releases
- 解壓, 執行
open-wsl.exe
- 執行
tools/1-add-open-wsl-terminal-here-menu.js
- 字型
- 安裝 DejaVu Sans Mono for Powerline
wsl-terminal
->選項
->文字
->字型
ARG CENTOS_IMG=stream8 | |
FROM quay.io/centos/centos:$CENTOS_IMG | |
ARG PYTHON_VERSION=3.8.13 | |
ENV PYENV_GIT_TAG=v2.3.5 | |
ENV PYENV_ROOT=/root/.pyenv | |
ENV PATH=$PYENV_ROOT/shims:$PYENV_ROOT/bin:$PATH | |
ENV PYTHON_CONFIGURE_OPTS="--enable-shared" |
import logging | |
import os | |
import subprocess | |
import signal | |
import time | |
import tempfile | |
import sh | |
import shlex | |
from pathlib import Path | |
from datetime import datetime |
import io | |
import tarfile | |
from pathlib import Path | |
import magic | |
import requests | |
def is_file_exist(url: str) -> bool: | |
try: |
import subprocess | |
import json | |
from enum import Enum | |
class DmiType(Enum): | |
Bios = 0 | |
System = 1 | |
BaseBoard = 2 |
import struct | |
PATH = '/sys/bus/pci/devices/0000:03:00.1/config' | |
with open(PATH, 'rb') as fd: | |
data = fd.read() | |
r, = struct.unpack('<H', data[0:0+2]) | |
if r == 0x8086: |
class HTTPRequestError(Exception): | |
pass | |
class HTTPClientError(Exception): | |
pass | |
class HTTPServerError(Exception): | |
pass |
find . -regex '^.*\(__pycache__\|\.py[co]\)$' -delete |
cat /proc/self/mountinfo | grep /home/repo | awk '{print $4 " ==> " $5}' | |
# output to markdown format | |
echo -e "|source|dest|\n|----|----|" > out.md | |
cat /proc/self/mountinfo | grep /home/repo | awk '{printf "|%s|%s|\n", $4, $5}' >> out.md |
open-wsl.exe
tools/1-add-open-wsl-terminal-here-menu.js
wsl-terminal
-> 選項
-> 文字
-> 字型
" ==================== VIM PLUG ================== | |
call plug#begin() | |
" autocompletion (also a linter - diagnostics) | |
" Plug 'Valloric/YouCompleteMe', { 'do': './install.py --clang-completer' } | |
" airline (powerline) | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' |