Skip to content

Instantly share code, notes, and snippets.

@gringoh
Last active May 27, 2024 18:31
Show Gist options
  • Save gringoh/9ee3a2e4242580ed22740b1983248d40 to your computer and use it in GitHub Desktop.
Save gringoh/9ee3a2e4242580ed22740b1983248d40 to your computer and use it in GitHub Desktop.
[ZSH Configuration]

Common PATH configurations

export PATH="/usr/local/opt/ruby/bin:$PATH"

# Android
export PATH="$PATH:$HOME/Library/Android/sdk"
export PATH="$PATH:$HOME/Library/Android/sdk/platform-tools"
#export PATH="$PATH:$HOME/Development/extras/gradle/bin"

# Visual Studio Code (code)
export PATH="$PATH:/Applications/Visual Studio Code.app/Contents/Resources/app/bin"

# Dart & Flutter
export FLUTTER_HOME=$HOME/Development/flutter/sdk
export FLUTTER_DART_HOME=$FLUTTER_HOME/bin/cache/dart-sdk/bin
export PATH="$PATH:$FLUTTER_HOME/bin"
export PATH="$PATH:$FLUTTER_DART_HOME"
export PATH=$HOME/.pub-cache/bin:$PATH

export PATH="$PATH:/Users/emanuel.lopez/fvm/default/bin"
export PATH="$PATH:/Users/emanuel.lopez/Development/protobuf/bin"
# ------------------------------------------------------------

Flutter aliases

alias br='flutter pub run build_runner build --delete-conflicting-outputs'
## Install: dart pub global activate arb_utils
##alias dsa='dart pub global run arb_utils:sort lib/l10n/app_en.arb'
alias dsa='arb_utils sort lib/l10n/app_en.arb '

Prompt customization

# Load version control information
autoload -Uz vcs_info
precmd() { vcs_info }

# Format the vcs_info_msg_0_ variable
zstyle ':vcs_info:git:*' formats '%K{green}[%b]%k '

# Set up the prompt (with git branch name)
setopt PROMPT_SUBST
PROMPT='${vcs_info_msg_0_}%1~ %# '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment