Created
July 12, 2024 00:08
-
-
Save indraAsLesmana/15c3d40750e6293f3cd8c5d292fed055 to your computer and use it in GitHub Desktop.
terminal running well flutter, py, firebase cli, cloudflare cli, php, node etc
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
| # >>> conda initialize >>> | |
| # !! Contents within this block are managed by 'conda init' !! | |
| __conda_setup="$('/Users/indralesmana/miniconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)" | |
| if [ $? -eq 0 ]; then | |
| eval "$__conda_setup" | |
| else | |
| if [ -f "/Users/indralesmana/miniconda3/etc/profile.d/conda.sh" ]; then | |
| . "/Users/indralesmana/miniconda3/etc/profile.d/conda.sh" | |
| else | |
| export PATH="/Users/indralesmana/miniconda3/bin:$PATH" | |
| fi | |
| fi | |
| unset __conda_setup | |
| # <<< conda initialize <<< | |
| export NVM_DIR="$HOME/.nvm" | |
| [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
| [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion | |
| #export PATH="$PATH":"$HOME/fvm/default/bin" | |
| export PATH="$HOME/.jenv/bin:$PATH" | |
| eval "$(jenv init -)" | |
| export PATH="/usr/local/opt/gnupg@2/bin:$PATH" | |
| #rbenv | |
| if which rbenv > /dev/null; then | |
| eval "$(rbenv init -)" | |
| fi | |
| #GPG | |
| #export PATH="/usr/local/MacGPG2/bin:$PATH" | |
| #laravel | |
| export PATH="$PATH:$HOME/.composer/vendor/bin" | |
| #flutterire cli warning recommendation | |
| export PATH="$PATH":"$HOME/.pub-cache/bin" | |
| #GMA requirement | |
| export ANDROID_HOME=~/Library/Android/sdk | |
| export PATH=$PATH:$ANDROID_HOME/cmdline-tools/latest/bin | |
| export PATH=$PATH:$ANDROID_HOME/platform-tools | |
| export PATH=$PATH:$ANDROID_HOME/tools | |
| export PATH=$PATH:$ANDROID_HOME/tools/bin/sdkmanager | |
| export FLUTTER_HOME="$HOME/fvm/default" | |
| proxy_flutter() { | |
| local flutter_exec | |
| if [[ -x "./.fvm/flutter_sdk/bin/flutter" ]]; then | |
| flutter_exec="./.fvm/flutter_sdk/bin/flutter" | |
| elif [[ -x "$HOME/fvm/default/bin/flutter" ]]; then | |
| flutter_exec="$HOME/fvm/default/bin/flutter" | |
| else | |
| echo "Flutter executable not found. Make sure it's installed and paths are correctly set." | |
| return 1 | |
| fi | |
| "$flutter_exec" "$@" | |
| } | |
| # Alias flutter command to our proxy method | |
| alias flutter='proxy_flutter' | |
| proxy_dart() { | |
| local dart_exec | |
| if [[ -x "./.fvm/flutter_sdk/bin/dart" ]]; then | |
| dart_exec="./.fvm/flutter_sdk/bin/dart" | |
| elif [[ -x "$HOME/fvm/default/bin/dart" ]]; then | |
| dart_exec="$HOME/fvm/default/bin/dart" | |
| else | |
| echo "Dart executable not found. Make sure it's installed and paths are correctly set." | |
| return 1 | |
| fi | |
| "$dart_exec" "$@" | |
| } | |
| # Alias Dart command to our proxy method | |
| alias dart='proxy_dart' | |
| # Herd injected PHP 8.3 configuration. | |
| export HERD_PHP_83_INI_SCAN_DIR="/Users/indralesmana/Library/Application Support/Herd/config/php/83/" | |
| # Herd injected PHP binary. | |
| export PATH="/Users/indralesmana/Library/Application Support/Herd/bin/":$PATH |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment