我的zshrc文件设置备份


# If you come from bash you might have to change your $PATH.

# export PATH=$HOME/bin:/usr/local/bin:$PATH

# Path to your oh-my-zsh installation.
export ZSH="/Users/chennan/.oh-my-zsh"

# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="agnoster"
export JADX_HOME=/Users/chennan/jadx
export JADX_BIN=$JADX_HOME/bin
export PATH=$PATH:$JADX_BIN
export PATH="/Users/chennan/opt/anaconda2/bin:$PATH"
export TEST_ENV_FLAG="1"
export PATH="/Users/chennan/Library/Python/3.6/bin:$PATH"
export PATH="/Users/chennan/bin:$PATH"
export PATH="/Users/chennan/ffmpeg/bin:$PATH"
export PATH=/usr/local/Cellar/mysql/8.0.31/bin:$PATH 
export PATH="/Users/chennan/Library/Android/sdk/platform-tools/platform-tools:$PATH:$TEST_ENV_FLAG"
export DENO_INSTALL="/Users/chennan/.deno"
export PATH="$DENO_INSTALL/bin:$PATH"
export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
export HOMEBREW_NO_AUTO_UPDATE=1
export OPENAI_API_KEY="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"
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )

# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"

# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"

# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"

# Uncomment the following line to automatically update without prompting.
# DISABLE_UPDATE_PROMPT="true"

# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13

# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS=true

# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"

# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"

# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"

# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"

# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"

# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"

# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder

# Which plugins would you like to load?
# Standard plugins can be found in ~/.oh-my-zsh/plugins/*
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(zsh-autosuggestions git)


source $ZSH/oh-my-zsh.sh

# User configuration

# export MANPATH="/usr/local/man:$MANPATH"

# You may need to manually set your language environment
# export LANG=en_US.UTF-8

# 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"

# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
alias acap="adb shell screencap -p /data/local/tmp/screen.png && adb pull /data/local/tmp/screen.png /Users/chennan/Desktop/screen.png && adb shell rm /data/local/tmp/screen.png"
alias setdebug="adb shell su -c 'magisk resetprop ro.debuggable 1';adb shell su -c 'stop';adb shell su -c 'start';"
alias isdebug="adb shell su -c 'getprop ro.debuggable 1';"
alias fs="adb shell su -c 'pkill -9 fs14212'; adb shell su -c '/data/local/tmp/fs14212 &';"
alias atop="adb shell dumpsys activity top|grep ACTIVITY"
alias subl="'/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl'"
alias code='open "/Users/chennan/Downloads/Visual Studio Code.app"'
alias ll="ls -alF"
alias la="ls -A"
alias l="ls -CF"
alias ddms="/Users/chennan/Library/Android/sdk/tools/monitor"
alias gi="git init"
alias gst="git status"
alias ga="git add -A"
alias gcm="git commit"
alias gpom="git push origin master"
alias gpod="git push origin dev"
alias gp="git push"
alias gl="git pull"
alias grt="git reset --hard"
alias parse="mercury-parser"
alias server="python -m SimpleHTTPServer"
alias adb="/Users/chennan/Library/Android/sdk/platform-tools/adb"
alias fd="/Users/chennan/fridaproject/fd_macos"
alias md="open -a Typora"
alias ghidra="/Users/chennan/Ghidra/ghidraRun"
alias vim="/usr/local/bin/vim"
alias armclang="/Users/chennan/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang"
# alias jnitrace="/Users/chennan/Library/Python/3.6/bin/jnitrace"
alias thrift0.9=/usr/local/opt/thrift@0.9/bin/thrift
alias python="/usr/local/bin/python3"
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
#PROMPT='%m:%. $ '
# #开启颜色
# autoload -U colors && colors       
# #配置提示符模式。。 其实配置之前的PS1也是可以的 但是为了尊重说明文档。。。
# PROMPT="%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[green]%}%1|%~ %{$reset_color%}%#>"        
# #在行末显示上一命令的返回状态
# RPROMPT="[%{$fg_bold[yellow]%}%?%{$reset_color%}]"
#color{{{
autoload colors
colors
 
for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE; do
eval _$color='%{$terminfo[bold]$fg[${(L)color}]%}'
eval $color='%{$fg[${(L)color}]%}'
(( count = $count + 1 ))
done
FINISH="%{$terminfo[sgr0]%}"
#}}}

 [ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
 
#命令提示符
RPROMPT=$(echo "$RED%D %T$FINISH")
PROMPT=$(echo "🐍 CXAPython🌈$GREEN%/$_YELLOW>$FINISH ")
 
#PROMPT=$(echo "$BLUE%M$GREEN%/
#$CYAN%n@$BLUE%M:$GREEN%/$_YELLOW>>>$FINISH ")
#标题栏、任务栏样式{{{
case $TERM in (*xterm*|*rxvt*|(dt|k|E)term)
precmd () { print -Pn "\e]0;%n@%M//%/\a" }
preexec () { print -Pn "\e]0;%n@%M//%/\ $1\a" }
;;
esac

EMACSPATH="/Applications/Emacs.app/Contents/MacOS"

alias emacs='${EMACSPATH}/Emacs "$@"'
alias ec='${EMACSPATH}/bin/emacsclient --c'
export PATH="$HOME/.poetry/bin:$PATH"




export PATH="/usr/local/bin:$PATH"
#clang影响go
#export PATH="/Users/chennan/Library/Android/sdk/ndk/21.3.6528147/toolchains/llvm/prebuilt/darwin-x86_64/bin:$PATH"
export PATH="/Users/chennan/Library/Android/sdk/platform-tools:$PATH"
export PATH="/Users/chennan/nodeproject/wabt/build:$PATH"
export ANDROID_NDK="/Users/chennan/Library/Android/sdk/ndk-bundle"
export MACOS_CERTID=frida-cert
export IOS_CERTID=frida-cert
# export ANDROID_NDK_ROOT="/Users/chennan/Library/Android/sdk/ndk-bundle"
export ANDROID_NDK_ROOT="/Users/chennan/Downloads/android-ndk-r22b"
# export PATH="$PATH:$ANDROID_NDK"
export PATH=$ANDROID_NDK_ROOT:$PATH
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_241.jdk/Contents/Home
export PATH="/usr/local/opt/qt@5/bin:$PATH"
export PATH=$JAVA_HOME/bin:$PATH
export PATH="/usr/local/opt/jpeg/bin:$PATH"

export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
if command -v pyenv 1>/dev/null 2>&1; then
  eval "$(pyenv init --path)"
fi


posted @ 2019-07-04 15:27  公众号python学习开发  阅读(683)  评论(0编辑  收藏  举报