Created
May 5, 2020 01:37
-
-
Save webdevsuperfast/aefde17926b5537af39455f55b56c93e to your computer and use it in GitHub Desktop.
Oh-My-ZSH, Antigen configuration on MacOS
This file contains 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 | |
# Composer Path | |
export PATH="$PATH:$HOME/.composer/vendor/bin" | |
# MySQL Path | |
export PATH="/usr/local/opt/mysql@5.7/bin:$PATH" | |
# Ruby Settings | |
export PATH="/usr/local/opt/ruby/bin:$PATH" | |
eval "$(rbenv init - --no-rehash)" | |
export RUBY_CONFIGURE_OPTS="--with-openssl-dir=$(brew --prefix openssl@1.1)" | |
export PATH="/usr/local/sbin:$PATH" | |
# Python | |
export PATH="/usr/local/opt/python/libexec/bin:$PATH" | |
# Flutter | |
export PATH="$PATH:`pwd`/flutter/bin" | |
# Homebrew Editor | |
export HOMEBREW_EDITOR="code" | |
# Android SDK | |
export ANDROID_SDK_ROOT="/Users/$USER/Library/Android/sdk" | |
export PATH="${PATH}:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/emulator" | |
export PATH="${PATH}:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/platform-tools" | |
export PATH="${PATH}:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/tools" | |
export PATH="${PATH}:$ANDROID_SDK_ROOT/tools:$ANDROID_SDK_ROOT/tools/bin" | |
# Use antigen | |
source $HOME/antigen.zsh | |
# Use Oh-My-Zsh | |
antigen use oh-my-zsh | |
# Set theme | |
# antigen theme robbyrussell | |
antigen theme romkatv/powerlevel10k | |
# Set plugins (plugins not part of Oh-My-Zsh can be installed using githubusername/repo) | |
antigen bundle git | |
antigen bundle zsh-users/zsh-autosuggestions | |
antigen bundle zsh-users/zsh-completions | |
antigen bundle zsh-users/zsh-syntax-highlighting | |
if [[ "$OSTYPE" == "darwin"* ]]; then | |
antigen bundle osx | |
fi | |
# Apply changes | |
antigen apply | |
# 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