Last active
April 8, 2021 10:28
-
-
Save ikbelkirasan/17deaddfdd6052964b953f31a1c03998 to your computer and use it in GitHub Desktop.
HTTP Toolkit script for fish shell
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
export http_proxy="http://127.0.0.1:8000" | |
export HTTP_PROXY="http://127.0.0.1:8000" | |
export https_proxy="http://127.0.0.1:8000" | |
export HTTPS_PROXY="http://127.0.0.1:8000" | |
export GLOBAL_AGENT_HTTP_PROXY="http://127.0.0.1:8000" | |
export CGI_HTTP_PROXY="http://127.0.0.1:8000" | |
export npm_config_proxy="http://127.0.0.1:8000" | |
export npm_config_https_proxy="http://127.0.0.1:8000" | |
export npm_config_scripts_prepend_node_path="false" | |
export GOPROXY="http://127.0.0.1:8000" | |
export SSL_CERT_FILE="/home/ikbel/.config/httptoolkit/ca.pem" | |
export NODE_EXTRA_CA_CERTS="/home/ikbel/.config/httptoolkit/ca.pem" | |
export REQUESTS_CA_BUNDLE="/home/ikbel/.config/httptoolkit/ca.pem" | |
export PERL_LWP_SSL_CA_FILE="/home/ikbel/.config/httptoolkit/ca.pem" | |
export GIT_SSL_CAINFO="/home/ikbel/.config/httptoolkit/ca.pem" | |
export CARGO_HTTP_CAINFO="/home/ikbel/.config/httptoolkit/ca.pem" | |
export HTTP_TOOLKIT_ACTIVE="true" | |
export PATH="/home/ikbel/.local/share/httptoolkit-server/client/current/overrides/path:$PATH" | |
export RUBYLIB="/home/ikbel/.local/share/httptoolkit-server/client/current/overrides/gems:$RUBYLIB" | |
export PYTHONPATH="/home/ikbel/.local/share/httptoolkit-server/client/current/overrides/pythonpath:$PYTHONPATH" | |
export NODE_OPTIONS="$NODE_OPTIONS --require /home/ikbel/.local/share/httptoolkit-server/client/current/overrides/js/prepend-node.js" | |
if command -v winpty >/dev/null 2>&1 | |
# Work around for winpty's hijacking of certain commands | |
alias php=php | |
alias node=node | |
end | |
echo 'HTTP Toolkit interception enabled' |
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
function httptoolkit | |
export http_proxy="http://127.0.0.1:8000" | |
export HTTP_PROXY="http://127.0.0.1:8000" | |
export https_proxy="http://127.0.0.1:8000" | |
export HTTPS_PROXY="http://127.0.0.1:8000" | |
export GLOBAL_AGENT_HTTP_PROXY="http://127.0.0.1:8000" | |
export CGI_HTTP_PROXY="http://127.0.0.1:8000" | |
export npm_config_proxy="http://127.0.0.1:8000" | |
export npm_config_https_proxy="http://127.0.0.1:8000" | |
export npm_config_scripts_prepend_node_path="false" | |
export GOPROXY="http://127.0.0.1:8000" | |
export SSL_CERT_FILE="/home/ikbel/.config/httptoolkit/ca.pem" | |
export NODE_EXTRA_CA_CERTS="/home/ikbel/.config/httptoolkit/ca.pem" | |
export REQUESTS_CA_BUNDLE="/home/ikbel/.config/httptoolkit/ca.pem" | |
export PERL_LWP_SSL_CA_FILE="/home/ikbel/.config/httptoolkit/ca.pem" | |
export GIT_SSL_CAINFO="/home/ikbel/.config/httptoolkit/ca.pem" | |
export CARGO_HTTP_CAINFO="/home/ikbel/.config/httptoolkit/ca.pem" | |
export HTTP_TOOLKIT_ACTIVE="true" | |
export PATH="/opt/HTTP Toolkit/resources/httptoolkit-server/overrides/path:$PATH" | |
export RUBYLIB="/opt/HTTP Toolkit/resources/httptoolkit-server/overrides/gems:$RUBYLIB" | |
export PYTHONPATH="/opt/HTTP Toolkit/resources/httptoolkit-server/overrides/pythonpath:$PYTHONPATH" | |
export NODE_OPTIONS="$NODE_OPTIONS --require \"/opt/HTTP Toolkit/resources/httptoolkit-server/overrides/js/prepend-node.js\"" | |
if command -v winpty >/dev/null 2>&1 | |
# Work around for winpty's hijacking of certain commands | |
alias php=php | |
alias node=node | |
end | |
echo 'HTTP Toolkit interception enabled' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment