Created
July 6, 2020 18:16
-
-
Save ttys3/9a14d664d498b94b7fb20a2669d24363 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
| # Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
| # Initialization code that may require console input (password prompts, [y/n] | |
| # confirmations, etc.) must go above this block; everything else may go below. | |
| if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
| source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
| fi | |
| # Created by newuser for 5.7.1 | |
| #typeset -U path | |
| #path=(/opt/android-sdk/build-tools/28.0.3:~/bin ~/.yarn/bin $path[@]) | |
| export PATH=$HOME/bin:$HOME/go/bin:$HOME/.cargo/bin:$HOME/.yarn/bin:${HOME}/.npm-packages/bin:$HOME/.config/composer/vendor/bin:$HOME/.local/bin:/opt/android-sdk/build-tools/28.0.3:$PATH | |
| #proxy | |
| export http_proxy=http://127.0.0.1:7070 | |
| export HTTP_PROXY=http://127.0.0.1:7070 | |
| export ALL_PROXY=http://127.0.0.1:7070 | |
| #rust | |
| source $HOME/.cargo/env | |
| #https://mirror.tuna.tsinghua.edu.cn/help/rustup/ | |
| export RUSTUP_DIST_SERVER=https://mirrors.tuna.tsinghua.edu.cn/rustup | |
| #podman | |
| export REGISTRY_AUTH_FILE=/etc/containers/auth.json | |
| #golang | |
| export GO111MODULE=on | |
| export GOPROXY="https://goproxy.cn,direct" | |
| #export GOPROXY="https://mirrors.aliyun.com/goproxy/,direct" | |
| #export GO111MODULE=auto | |
| export JAVA_HOME=/usr/lib/jvm/java | |
| export _JAVA_OPTIONS='-Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel -Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dawt.useSystemAAFontSettings=lcd -Dsun.java2d.uiScale=' | |
| # repo | |
| export REPO_URL='https://mirrors.tuna.tsinghua.edu.cn/git/git-repo/' | |
| alias brepo='GIT_SSH_COMMAND="ssh -o ControlPath=none" repo' | |
| alias rov='repo overview' | |
| alias rst='repo status' | |
| alias ghren='git remote rename origin gh' | |
| #tar xz | |
| export XZ_DEFAULTS="-T 0" | |
| #bat https://github.com/sharkdp/bat | |
| export BAT_STYLE=plain | |
| export BAT_THEME="TwoDark" | |
| export MANPAGER="sh -c 'col -bx | bat -l man -p'" | |
| export MANROFFOPT="-c" | |
| #deno | |
| export DENO_INSTALL="/home/ttys3/.deno" | |
| export PATH="$DENO_INSTALL/bin:$PATH" | |
| #zsh opt | |
| setopt HIST_IGNORE_DUPS | |
| autoload -U promptinit | |
| promptinit | |
| #prompt suse | |
| # prompt config | |
| export AGKOZAK_PROMPT_DIRTRIM=10 | |
| #export AGKOZAK_MULTILINE=0 | |
| #oh-my-zsh | |
| DISABLE_AUTO_UPDATE=true | |
| ZSH="${HOME}/.cache/antibody/https-COLON--SLASH--SLASH-github.com-SLASH-robbyrussell-SLASH-oh-my-zsh" | |
| # Load antibody | |
| # export ANTIBODY_HOME=/c/Users/hacklog/.antibody | |
| source <(antibody init) | |
| antibody bundle < ~/.zsh_plugins.txt | |
| [ -e ~/.zsh_alias ] && source ~/.zsh_alias | |
| [ -e ~/.zsh_compatible ] && source ~/.zsh_compatible | |
| alias so='source ~/.zsh_alias' | |
| PATH=$PATH:/home/hacklog/App/010Editor;export PATH; # ADDED BY INSTALLER - DO NOT EDIT OR DELETE THIS COMMENT - 87FF8EFC-483D-BCAA-D67D-735CF60410D1 B8D8DCC7-F49C-75A4-4AB5-9BAFE13AC732 | |
| [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh | |
| # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. | |
| [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment