Skip to content

Instantly share code, notes, and snippets.

@daniloab
Created October 16, 2021 20:20
Show Gist options
  • Save daniloab/db0387d15be6e08155f3ad570bdb2dbd to your computer and use it in GitHub Desktop.
Save daniloab/db0387d15be6e08155f3ad570bdb2dbd to your computer and use it in GitHub Desktop.

Problems

After installed brew, node, npm, nvm, yarn we must export some variables. This is a starter file to my .bashrc.

Can be used for .zshrc just need to remove the bash eternal history lines or understand the error beyond shopt

export PATH=/opt/homebrew/bin:$PATH
export NVM_DIR=~/.nvm

export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

shopt -s histappend
export HISTFILESIZE=
export HISTSIZE=
export HISTTIMEFORMAT="[%F %T] "
export HISTFILE=~/.bash_eternal_history
export HISTCONTROL=ignoreboth
export PROMPT_COMMAND="history -a; $PROMPT_COMMAND"

export PATH=$PATH:/usr/local/opt/node@16/bin

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk-11.0.12.jdk/Contents/Home
export ANDROID_HOME=~/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

export PATH=~/Android/sdk/tools:$PATH
export PATH=~/Android/sdk/platform-tools:$PATH

[[ -s $HOME/.nvm/nvm.sh ]] && . $HOME/.nvm/nvm.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment