Last active
May 16, 2023 05:31
-
-
Save iTonyYo/f20fd2dab1ec10928e7f8d31b3ccdf55 to your computer and use it in GitHub Desktop.
Revisions
-
iTonyYo renamed this gist
May 16, 2023 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
iTonyYo revised this gist
May 16, 2023 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -5,7 +5,7 @@ # source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" # fi export ZSH="$HOME/.oh-my-zsh" ZSH_THEME="apple" # apple, robbyrussell, agnoster, bira, amuse -
iTonyYo created this gist
May 16, 2023 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,188 @@ # 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 export ZSH=/Users/iyowei/.oh-my-zsh ZSH_THEME="apple" # apple, robbyrussell, agnoster, bira, amuse CASE_SENSITIVE="true" DISABLE_UPDATE_PROMPT="true" export UPDATE_ZSH_DAYS=2 plugins=( osx common-aliases sudo vscode nvm node cake copybuffer copydir copyfile cp docker docker-compose emoji-clock emoji encode64 git git-extras git-flow-avh git-flow git-hubflow git-prompt git-remote-branch git-auto-fetch gitfast github gitignore history history-substring-search python redis-cli sublime vi-mode vim-interaction xcode yarn zsh_reload fzf ) source $ZSH/oh-my-zsh.sh # User configuration # starship shell eval "$(starship init zsh)" eval $(thefuck --alias) [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh # tabtab source for packages # uninstall by removing these lines [[ -f ~/.config/tabtab/zsh/__tabtab.zsh ]] && . ~/.config/tabtab/zsh/__tabtab.zsh || true # To customize prompt, run `p10k configure` or edit ~/.p10k.zsh. # [[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh # alias alias ip="ipconfig getifaddr en0" alias disk="df -h" alias path="echo $PATH" alias hostfile="sudo vim /etc/hosts" alias kernel="uname -msr" alias api_huso_io="cd ~/Development/huso/inner/api.huso.io && clear" alias huso_io="cd ~/Development/huso/inner/huso.io && clear" alias huso_app="cd ~/Development/huso/inner/huso.dwa && clear" alias huso_db="cd ~/Development/huso/inner/huso.db && clear" alias abstract_ui="cd ~/Development/gelue-club/abstract-ui && clear" alias gelue_club="cd ~/Development/gelue-club/gelue.club && clear" alias deep_scan_dir="cd ~/Development/itonyyo/deep-scan-dir && clear" alias flatten_folder="cd ~/Development/itonyyo/flatten-folder && clear" alias flatten_folder_cli="cd ~/Development/itonyyo/flatten-folder-cli && clear" alias watermark="cd ~/Development/itonyyo/watermark && clear" alias gitconfig="vim ~/.gitconfig" alias setgit_cli="cd ~/Development/itonyyo/setgit-cli && clear" alias latest_gitignore="cd ~/Development/itonyyo/latest-gitignore && clear" alias fast_gitignore="cd ~/Development/itonyyo/fast-gitignore && clear" alias zsh_reload="source ~/.zshrc && clear" alias zshconfig="bat ~/.zshrc" alias ohmyzsh="open ~/.oh-my-zsh" alias sshhome="cd ~/.ssh" alias sshconfig="vim ~/.ssh/config" alias ssh_github="eval \`ssh-agent\` && ssh-add ~/.ssh/github" alias ssh_bitbucket="eval \`ssh-agent\` && ssh-add ~/.ssh/bitbucket" alias ssh_gitlab="eval \`ssh-agent\` && ssh-add ~/.ssh/gitlab" alias ssh_gitee="eval \`ssh-agent\` && ssh-add ~/.ssh/gitee" alias cwebp="/usr/local/Cellar/webp/1.3.0/bin/cwebp" alias dwebp="/usr/local/Cellar/webp/1.3.0/bin/dwebp" alias gif2webp="/usr/local/Cellar/webp/1.3.0/bin/gif2webp" alias img2webp="/usr/local/Cellar/webp/1.3.0/bin/img2webp" alias webpinfo="/usr/local/Cellar/webp/1.3.0/bin/webpinfo" alias webpmux="/usr/local/Cellar/webp/1.3.0/bin/webpmux" alias gat='gh gist view 929f40eee087dceeec32' alias lx='ls -aFlhS' alias proxy='export all_proxy=socks5://127.0.0.1:8889' alias unproxy='unset all_proxy' # Kubernetes if [ $commands[kubectl] ]; then source <(kubectl completion zsh) fi export PATH="/usr/local/sbin:$PATH" # bun [ -s "/Users/iyowei/.bun/_bun" ] && source "/Users/iyowei/.bun/_bun" # bun completions export BUN_INSTALL="/Users/iyowei/.bun" export PATH="$BUN_INSTALL/bin:$PATH" # android sdk export ANDROID_SDK=$HOME/Library/Android/sdk export ANDROID_SDK_ROOT=$HOME/Library/Android/sdk export ANDROID_HOME=$HOME/Library/Android/sdk export PATH=$PATH:$ANDROID_HOME/emulator export PATH=${PATH}:${ANDROID_HOME}/tools export PATH=${PATH}:${ANDROID_HOME}/tools/bin export PATH=$PATH:$ANDROID_HOME/platform-tools # android ndk export ANDROID_NDK=/Users/iyowei/Library/Android/sdk/ndk/25.1.8937393 export NDK_HOME=/Users/iyowei/Library/Android/sdk/ndk/25.1.8937393 # https://github.com/Blizzard/node-rdkafka#mac-os-high-sierra--mojave # node-rdkafka、ruby... when build them, need to tell the linker where to find openssl export LDFLAGS="-L/usr/local/opt/[email protected]/lib" export CPPFLAGS="-I/usr/local/opt/[email protected]/include" export PATH="/usr/local/opt/[email protected]/bin:$PATH" # mysql export PATH="/usr/local/opt/[email protected]/bin:$PATH" # export NODE_OPTIONS=--openssl-legacy-provider # homebrew export HOMEBREW_CORE_GIT_REMOTE="https://mirrors.ustc.edu.cn/homebrew-core.git" export HOMEBREW_BOTTLE_DOMAIN="https://mirrors.ustc.edu.cn/homebrew-bottles" # pnpm export PNPM_HOME="/Users/iyowei/Library/pnpm" export PATH="$PNPM_HOME:$PATH" # pnpm end # nvm mirror export NVM_NODEJS_ORG_MIRROR="https://mirrors.ustc.edu.cn/node/" export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # pyenv export PYENV_ROOT="$HOME/.pyenv" command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)" # rvm source $HOME/.rvm/scripts/rvm # Add RVM to PATH for scripting. Make sure this is the last PATH variable change. export PATH="$PATH:$HOME/.rvm/bin"%