Last active
September 17, 2018 03:17
-
-
Save lovejavaee/4779113608803b7edf28112fda8a3017 to your computer and use it in GitHub Desktop.
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(){ | |
export no_proxy = "localhost,127.0.0.1,localaddress,.localdomain.com" | |
export http_proxy = "http://127.0.0.1:1081" | |
export https_proxy = $http_proxy | |
export socket_proxy = "socks5://127.0.0.1:1081" | |
echo -e "Proxy Open!" | |
} | |
function proxy_off(){ | |
unset http_proxy | |
unset https_proxy | |
unset socket_proxy | |
echo -e "Proxy Closed!" | |
} | |
function proxy_show(){ | |
echo $http_proxy | |
echo $https_proxy | |
echo $socket_proxy | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
alias al='alias'
alias p='pass'
alias f='find'
alias e='explorer.exe'
alias c='cf'
alias j='z'
alias s='source'
alias a='ag'
alias af='alias | a'
alias o='e'
alias h='http'
alias le='less'
alias gs='git status'
alias gog='ssh gcp'
#export go='ssh gcp'
#alias clip='clip.exe'
#alias xclip='clip.exe'
ignore DLL...
zstyle ':completion::complete:-command-::' ignored-patterns '.dll|.exe|.so|*.pyd'
Export
export EDITOR='/usr/bin/vim'
For bindKey
bindkey ',' autosuggest-accept
For jira
eval "$(jira --completion-script-zsh)"
Tell zsh not to nice background processes
unsetopt BG_NICE