Last active
November 28, 2019 18:22
-
-
Save JesseScott/727a13865fa804e3d8e5 to your computer and use it in GitHub Desktop.
Bash Profile
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
# ------------- | |
# | |
# le' bash | |
# | |
# ------------- | |
# ------------- | |
# | |
# ALIASES | |
# | |
# ------------- | |
if [ -f ~/.aliases ]; then | |
source ~/.aliases | |
fi | |
alias dev='cd /Users/jessescott/Developer/Git/' | |
alias gs='git status' | |
alias ga='git add ' | |
alias gaa='git add -A' | |
alias gb='git branch ' | |
alias gc='git commit ' | |
alias gcm='git commit -m ' | |
alias gf='git fetch' | |
alias gfo='git fetch origin' | |
alias go='git checkout ' | |
alias pull='git pull' | |
alias push='git push' | |
alias adb-rc="adb reconnect" | |
alias adb-ks="adb kill-server" | |
alias adb-ss="adb start-server" | |
# ------------- | |
# | |
# FUNCTIONS | |
# | |
# ------------- | |
function home | |
{ | |
cd ~ | |
} | |
function profile | |
{ | |
home | |
open -a "Visual Studio Code" .bash_profile | |
} | |
function reload | |
{ | |
home | |
source .bash_profile | |
} | |
function gitclean | |
{ | |
git status | |
git clean -df | |
git checkout -- . | |
git pull | |
} | |
function reconnect { | |
lsof -i :5037 | |
adb kill-server | |
adb start-server | |
} | |
# APPS | |
function studio | |
{ | |
open -a "Android Studio" | |
} | |
function xcode | |
{ | |
open -a "Xcode" | |
} | |
function sourcetree | |
{ | |
open -a "Sourcetree" | |
} | |
function vscode | |
{ | |
open -a "Visual Studio Code" | |
} | |
# ATLASSIAN | |
function jira | |
{ | |
open https://1mojio.atlassian.net | |
} | |
function jiras | |
{ | |
open https://1mojio.atlassian.net/browse/$1 | |
} | |
function bb | |
{ | |
open https://bitbucket.org/dashboard/overview | |
} | |
function conf | |
{ | |
open https://1mojio.atlassian.net/wiki/ | |
} | |
function confs | |
{ | |
open https://1mojio.atlassian.net/wiki/dosearchsite.action?queryString="$*"; | |
} | |
# DEV | |
function kotlin | |
{ | |
open https://kotlinlang.org/ | |
} | |
function anddev | |
{ | |
open https://developer.android.com/index.html | |
} | |
function iosdev | |
{ | |
open https://developer.apple.com/ | |
} | |
function itc | |
{ | |
open https://itunesconnect.apple.com/ | |
} | |
function so | |
{ | |
open https://stackoverflow.com/search?q="$*"; | |
} | |
function mkcd() | |
{ | |
mkdir $1; cd $1 ; | |
} | |
# MISC | |
function calendar | |
{ | |
open https://calendar.google.com/calendar/b/1/r/week | |
} | |
function google | |
{ | |
open https://www.google.ca/search?q="$*"; | |
} | |
function drive | |
{ | |
open https://drive.google.com/drive/u/0/my-drive | |
} | |
# ------------- | |
# | |
# PATH | |
# | |
# ------------- | |
export PATH="/opt/local/bin:/opt/local/sbin:$PATH" | |
export PATH="/Users/jessescott/bin:$PATH" | |
export PATH="~/.local/bin:$PATH" | |
# ------------- | |
# | |
# JAVA | |
# | |
# ------------- | |
export JAVA_HOME="/Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home" | |
export PATH="$PATH:$JAVA_HOME/bin" | |
# ------------- | |
# | |
# ANDROID | |
# | |
# ------------- | |
export ANDROID_HOME="/Users/jessescott/Library/Android/sdk/" | |
export PATH=$ANDROID_HOME/tools:$PATH | |
export PATH=$ANDROID_HOME/platform-tools:$PATH | |
export PATH=$ANDROID_HOME/ndk-bundle:$PATH | |
export BUNDLE_TOOL="/Users/jessescott/Developer/Misc/Installs/bundletool-all-0.3.3.jar" | |
export PATH="$PATH:$BUNDLE_TOOL" | |
# ------------- | |
# | |
# Flutter | |
# | |
# ------------- | |
export PATH="$HOME/flutter/bin":$PATH | |
# ------------- | |
# | |
# COLOURS | |
# | |
# ------------- | |
export PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ " | |
export CLICOLOR=1 | |
export LSCOLORS=ExFxBxDxCxegedabagacad | |
# ------------- | |
# | |
# UTF-8 (Fastlane) | |
# | |
# ------------- | |
export LC_ALL=en_US.UTF-8 | |
export LANG=en_US.UTF-8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment