WSL2 fish shell 自动设置 http 代理
WSL2 使用来自宿主机的(clash)代理
使用
# echo "set -x ALL_PROXY http://(grep nameserver /etc/resolv.conf | awk '{ print \$2 }'):7890" > /etc/fish/conf.d/wsl2_proxy.fish
// cspell:disable | |
// function global(param) { | |
// if (param == "SMSRN") return "MorFans.cn"; | |
// if (param == "SMSRF") return "魔帆博客"; | |
// if (param == "SMSRD") return "9-16-21"; | |
// if (param == "SMSRT") return "14.45"; | |
// if (param == "SMSRB") return "【魔帆博客】您的登录验证码是 6666,请于-30分钟内填写。如非本人操作,请试试加入咱们的讨论群,加入咱们。群号:179020064 301661143"; | |
// } | |
let apiKey = "填写你的 bot token"; |
mixin: # object | |
dns: | |
enable: true | |
listen: 0.0.0.0:53 | |
# These nameservers are used to resolve the DNS nameserver hostnames below. | |
# Specify IP addresses only | |
default-nameserver: | |
- 114.114.114.114 | |
- 222.246.129.80 |
{ | |
"$schema": "https://aka.ms/winget-settings.schema.json", | |
// For documentation on these settings, see: https://aka.ms/winget-settings | |
"source": { | |
"autoUpdateIntervalInMinutes": 5 | |
}, | |
"installBehavior": { | |
"preferences": { | |
"locale": [ | |
"en-US", |
100..|10010..|10011..|10086..|95...|12520.*|12114.*|12110.*|11185.*|1065.*955.*|123 |
WSL2 使用来自宿主机的(clash)代理
# echo "set -x ALL_PROXY http://(grep nameserver /etc/resolv.conf | awk '{ print \$2 }'):7890" > /etc/fish/conf.d/wsl2_proxy.fish
{"version":"2.0.101","settings":{"autofocusevents":"ads,annotations,cinema,size,boost,loop,speed,filters","autopausevideos":true,"backgroundcolor":"#000000","backgroundopacity":86,"blur":0,"brightness":100,"cinemamode":false,"cinemamodewideplayer":true,"contrast":100,"controlvolume":true,"controlvolumemousebutton":false,"customtheme":"","date":1599473353010,"defaultvolume":false,"disableautoplay":true,"disablepreloading":false,"enablefilters":false,"executescript":false,"expanddescription":false,"grayscale":0,"huerotate":0,"filter":"none","ignoreplaylists":true,"message":false,"invert":0,"newestcomments":true,"overridespeeds":true,"pauseforegroundtab":false,"pausevideos":true,"permissions":false,"pinnedplayer":true,"pinnedplayerposition":"_top-left","pinnedplayersize":"_400x225","quality1":"hd1080","quality2":"hd720","quality3":"large","quality4":"medium","removeads":true,"removeannotations":false,"reversemousewheeldirection":false,"saturate":100,"script":"","selectquality":false,"sepia":0,"slideeffect":false |
{"FLUCTLIGHT":"on","BREAK_UPDATE":"off","FOOLBAR":"off","MAX_COSINE":"60","TRIM_SPACE":"on","DANMU_SUBSCRIPT":"on","FORCELIST":"[[\"^23{2,}$\",\"233...\"],[\"^6{3,}$\",\"666...\"],[\"^[fF]+$\",\"FFF...\"],[\"^[hH]+$\",\"hhh...\"],[\"^[yYoO0][yYoO0\\\\s~]+$\",\"yoo...\"]]","TRIM_PINYIN":"on","POPUP_BADGE":"percent","REMOVE_SEEK":"off","TOOLTIP":"on","MAX_DIST":"5","SCROLL_THRESHOLD":"1200","WHITELIST":"[]","REPRESENTATIVE_PERCENT":"0","MODE_ELEVATION":"on","DANMU_MARK":"suffix","PROC_TYPE7":"on","SHRINK":"on","TRIM_ENDING":"on","MARK_THRESHOLD":"3","CROSS_MODE":"on","BLACKLIST":"[]","PROC_POOL1":"off","ENLARGE":"on","TRIM_WIDTH":"on","AUTO_DISABLE_DANMU":"off","TAOLUS":"","_LAST_UPDATE_TIME":"1599480479947","AUTO_DANMU_LIST":"off","PROC_TYPE4":"on","HIDE_THRESHOLD":"0","FLASH_NOTIF":"on","THRESHOLD":"20","CLOUD_SYNC":"on","_ADVANCED_USER":"on"} |
折扣|优惠卷|原价卖|清仓|限时|包邮|个尺码|券后|卷后|优惠券|返现|福利|特价|愿意赔死|某宝|打完折|现货|这批货|货还全|入手|正品|货品|心动价|价格实惠|品质好|潮人圈|大福利|便宜好用|超级福利|必备|这款|捡漏|原单|市场价|货不多|福利秒杀|99新|任选|连衣裙|短裙|小工厂|秒杀|售完不补|便宜货|专柜|最新款|专柜渠道|入这款|纯棉|面料|限量|细节图|预算低|种草|果断推荐|抢购|官网零头|定金|不要错过|淘宝|京东|拼多多|白菜价|买一送一 |
<!-- : Begin batch script | |
@echo off | |
setLocal EnableExtensions | |
setlocal EnableDelayedExpansion | |
:: _ _ | |
:: _ | | _ | | _ | |
:: ____ _ _| |_ ___ _ _ ____ _ | | ____| |_ ____ | | _ ____| |_ | |
:: / _ | | | | _)/ _ \| | | | _ \ / || |/ _ | _)/ _ ) | || \ / _ | _) | |
:: ( ( | | |_| | |_| |_| | |_| | | | ( (_| ( ( | | |_( (/ / _| |_) ( ( | | |__ | |
:: \_||_|\____|\___\___/ \____| ||_/ \____|\_||_|\___\____(_|____/ \_||_|\___) |
:root { | |
--depth-1: 0 4px 12px rgba(0, 0, 0, .03), 0 1px 4px rgba(0, 0, 0, .009); | |
--depth-2: 0 8px 18px rgba(0, 0, 0, .08), 0 3px 8px rgba(0, 0, 0, .025); | |
--con-primary: rgba(255, 255, 255, 1); | |
--con-primary-b: rgba(24, 26, 27, 1); | |
} | |
@supports (backdrop-filter: blur(20px)) { | |
:root { | |
--filter-glass: blur(20px) saturate(180%); |