Skip to content

Instantly share code, notes, and snippets.

@lovejavaee
Last active September 17, 2018 03:17
Show Gist options
  • Save lovejavaee/4779113608803b7edf28112fda8a3017 to your computer and use it in GitHub Desktop.
Save lovejavaee/4779113608803b7edf28112fda8a3017 to your computer and use it in GitHub Desktop.
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
}
@lovejavaee
Copy link
Author

lovejavaee commented Sep 17, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment