Skip to content

Instantly share code, notes, and snippets.

View vollate's full-sized avatar
天の光は全て星だ

Vollate vollate

天の光は全て星だ
View GitHub Profile
@vollate
vollate / .gitconfig
Last active April 30, 2026 03:07
Use neovim as git difftool
# add the following code to your git config(~/.gitconfig for global)
[diff]
tool = nvim_difftool
[difftool "nvim_difftool"]
cmd = nvim -d \"$LOCAL\" \"$REMOTE\"
@vollate
vollate / .zshrc
Last active April 30, 2026 03:07
Terminal proxy
function proxy_on(){
url="127.0.0.1"
port="<your port>"
export https_proxy=http://$url:$port http_proxy=http://$url:$port all_proxy=socks5://$url:$port
}
function proxy_off(){
unset https_proxy http_proxy all_proxy
}