Skip to content

Instantly share code, notes, and snippets.

@zhirzh
Last active June 12, 2023 04:06
Show Gist options
  • Save zhirzh/6ba43c89b3fb866243f1f1f0f4a6a2ac to your computer and use it in GitHub Desktop.
Save zhirzh/6ba43c89b3fb866243f1f1f0f4a6a2ac to your computer and use it in GitHub Desktop.
alias ls="ls -lAFG"
adbAll() {
devices=$(adb devices | grep -w device | cut -f 1)
for device in $devices; do
echo "adb -s" "$device" "$@"
adb -s "$device" "$@"
done
}
# zsh warning
export BASH_SILENCE_DEPRECATION_WARNING=1
# clean history
export HISTFILESIZE=
export HISTSIZE=
export HISTCONTROL=ignoreboth:erasedups
# alias
. "$HOME/.bash_aliases"
# prompt
. "$HOME/.bash_prompt"
# git
. "$HOME/.git-completion.bash"
. "$HOME/.git-prompt.sh"
# asdf
. "$(brew --prefix asdf)/libexec/asdf.sh"
. "$(brew --prefix asdf)/etc/bash_completion.d/asdf.bash"
# android
export ANDROID_HOME="$HOME/Library/Android/sdk"
export PATH="$ANDROID_HOME/emulator:$PATH"
export PATH="$ANDROID_HOME/tools:$PATH"
export PATH="$ANDROID_HOME/tools/bin:$PATH"
export PATH="$ANDROID_HOME/platform-tools:$PATH"
# java
export JAVA_11_HOME="$HOME/Library/Java/JavaVirtualMachines/corretto-11.0.19/Contents/Home"
export JAVA_HOME="/Applications/Android Studio.app/Contents/jbr/Contents/Home"
# cocoapods
# export LANG=en_US.UTF-8
# node
# export NODE_OPTIONS=--max_old_space_size=4096
RESET='\[\e[m\]'
RED='\[\e[1;31m\]'
GREEN='\[\e[1;32m\]'
YELLOW='\[\e[1;33m\]'
BLUE='\[\e[1;34m\]'
WHITE='\[\e[1;37m\]'
SPACER="$RESET "
DIR="$YELLOW\w"
TIME="$BLUE\t"
BRANCH="$GREEN\$(__git_ps1 '%s ')"
PS1="$TIME $DIR $BRANCH$RESET\$ "
[user]
name = Shirsh Zibbu
email = zibbu.shirsh@gmail.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment