分享两个 bash alias,😊

2019 年 2 月 27 日
 openroc

两个 alias 如下,(前提本机已经有 ss 等各种梯子)

alias fuck='export http_proxy=http://127.0.0.1:8080 https_proxy=http://127.0.0.1:8080'
alias fucked='export http_proxy="" https_proxy=""'

每次命令行,如 wget 等各种连不上,此时你心中必定万马奔腾,然后这两个用起来,就很舒服多了。

具体使用流程如下,

尼玛。。。我日。。。爽了。。。

2903 次点击
所在节点    程序员
28 条回复
zencoding
2019 年 2 月 28 日
doproxy unproxy
0ZXYDDu796nVCFxq
2019 年 2 月 28 日
@Kilerd 直接在 .bash_profile export 就行了
配置一次,平时都不用管
ai277014717
2019 年 2 月 28 日
我也分享也 dash 代码片 ALL_PROXY=socks5://127.0.0.1:8080
nimrc
2019 年 2 月 28 日
tsocks
geelaw
2019 年 2 月 28 日
应该叫 climb (
yangg
2019 年 2 月 28 日
搭车也分享一个:alias sudo='sudo '
允许 sudo 时调用别名命令
If the last character of the alias value is a blank, then the next command word following the alias is also checked for alias expansion.
see http://www.gnu.org/software/bash/manual/bashref.html#Aliases
aec4d
2019 年 2 月 28 日
也分享一下
yzlnew
2019 年 3 月 1 日
Clash 和 ShadowsockX-NG 都有终端代理命令的复制

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://study.congcong.us/t/539437

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX