Skip to content

Instantly share code, notes, and snippets.

@xfoxfu
Created January 31, 2018 03:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xfoxfu/16697ca368ae2ab31d195980db9aa5c8 to your computer and use it in GitHub Desktop.
Save xfoxfu/16697ca368ae2ab31d195980db9aa5c8 to your computer and use it in GitHub Desktop.
source /usr/local/share/antigen/antigen.zsh
export ZSH=/Users/coderfox/.oh-my-zsh
antigen use oh-my-zsh
antigen bundle git
antigen bundle ssh-agent
antigen bundle docker
antigen bundle docker-compose
antigen bundle extract
antigen bundle gitignore
antigen bundle autojump
antigen bundle golang
# rust cargo gpg-agent yarn dotenv httpie node npm zsh_reload osx nvm
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-completions
# syntax color definition
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern)
typeset -A ZSH_HIGHLIGHT_STYLES
# ZSH_HIGHLIGHT_STYLES[command]=fg=white,bold
# ZSH_HIGHLIGHT_STYLES[alias]='fg=magenta,bold'
ZSH_HIGHLIGHT_STYLES[default]=none
ZSH_HIGHLIGHT_STYLES[unknown-token]=fg=009
ZSH_HIGHLIGHT_STYLES[reserved-word]=fg=009,standout
ZSH_HIGHLIGHT_STYLES[alias]=fg=cyan,bold
ZSH_HIGHLIGHT_STYLES[builtin]=fg=cyan,bold
ZSH_HIGHLIGHT_STYLES[function]=fg=cyan,bold
ZSH_HIGHLIGHT_STYLES[command]=fg=white,bold
ZSH_HIGHLIGHT_STYLES[precommand]=fg=white,underline
ZSH_HIGHLIGHT_STYLES[commandseparator]=none
ZSH_HIGHLIGHT_STYLES[hashed-command]=fg=009
ZSH_HIGHLIGHT_STYLES[path]=fg=214,underline
ZSH_HIGHLIGHT_STYLES[globbing]=fg=063
ZSH_HIGHLIGHT_STYLES[history-expansion]=fg=white,underline
ZSH_HIGHLIGHT_STYLES[single-hyphen-option]=none
ZSH_HIGHLIGHT_STYLES[double-hyphen-option]=none
ZSH_HIGHLIGHT_STYLES[back-quoted-argument]=none
ZSH_HIGHLIGHT_STYLES[single-quoted-argument]=fg=063
ZSH_HIGHLIGHT_STYLES[double-quoted-argument]=fg=063
ZSH_HIGHLIGHT_STYLES[dollar-double-quoted-argument]=fg=009
ZSH_HIGHLIGHT_STYLES[back-double-quoted-argument]=fg=009
ZSH_HIGHLIGHT_STYLES[assign]=none
antigen bundle zsh-users/zsh-syntax-highlighting
antigen theme ys
antigen apply
# User configuration
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:$HOME/.cargo/bin"
# export MANPATH="/usr/local/man:$MANPATH"
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
# ssh
# export SSH_KEY_PATH="~/.ssh/dsa_id"
alias gcz="git cz"
# nvm
# export NVM_DIR=~/.nvm
# source $(brew --prefix nvm)/nvm.sh
# export NODE_ENV=dev
# dotnet
export PATH="/usr/local/share/dotnet:/usr/local/sbin:$PATH"
eval $(thefuck --alias)
alias realrm="/bin/rm"
alias rm="echo \"'rm' is forbidden on this computer, use 'trash' instead.\nDoing 'trash' on it.\" && trash -v"
# dart
# export PATH="$PATH:/Users/coderfox/.pub-cache/bin"
# gpg
alias gpg-message="gpg -aser"
alias gpg-sign="gpg -as"
gpgd() {
echo "$1" | gpg
}
# base64
b64d() {
echo "$1" | base64 -D
}
b64e() {
echo "$1" | base64
}
run(){
cc $1 -lm -std=c90 -o /tmp/temp_program && /tmp/temp_program
}
# Golang
export GOPATH="$HOME/Dev/go"
export PATH="$GOPATH/bin:$PATH"
export http_proxy="http://127.0.0.1:8001";
export HTTP_PROXY="http://127.0.0.1:8001";
export https_proxy="http://127.0.0.1:8001";
export HTTPS_PROXY="http://127.0.0.1:8001"
unloadProxy() {
export http_proxy="";
export HTTP_PROXY="";
export https_proxy="";
export HTTPS_PROXY="";
}
export NODE_ENV=dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment