This file contains hidden or 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
| # add the following code to your git config(~/.gitconfig for global) | |
| [diff] | |
| tool = nvim_difftool | |
| [difftool "nvim_difftool"] | |
| cmd = nvim -d \"$LOCAL\" \"$REMOTE\" |
This file contains hidden or 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 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 | |
| } |