Last active
August 21, 2019 16:13
-
-
Save dvliman/30a511ea7faaad00193fa5519a1cf21b to your computer and use it in GitHub Desktop.
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
set -gx PATH $PATH /usr/local/sbin | |
set -gx GOPATH $HOME/go | |
set -gx GOBIN $GOPATH/bin | |
set -gx PATH $PATH $GOBIN | |
set -gx GOOGLE_APPLICATION_CREDENTIALS /Users/dliman/lereta/acq-plt/app-credentials.json | |
set -gx GOGOOGLE_APPLICATION_CREDENTIALS /Users/dliman/lereta/acq-plt/app-credentials.json | |
set -gx APP_ENV local | |
set -gx PROJECT_ID ltf-eng-dliman-cb8b | |
function set_psql | |
set -gx PGHOST 35.247.99.4 | |
set -gx PGUSER dev_user | |
set -gx PGDATABASE boarding | |
set -gx PGPASSWORD BbRSk4E8MTUr4mu | |
end | |
alias grs "go run ./service" | |
alias gs "git status" | |
alias gb "git branch" | |
alias gaa "git all --all ." | |
alias gc "git commit" | |
alias gco "git checkout" | |
alias grh "git reset --hard HEAD" | |
alias gpull "git pull origin" | |
alias gt "go test -v ./..." | |
alias acq "cd /Users/dliman/lereta/acq-plt" | |
alias fls "cd /Users/dliman/lereta/lereta-file-service" | |
alias pss "cd /Users/dliman/gt/provisioner" | |
alias geneva "cd /Users/dliman/geneva/projects" | |
function tail_postgres | |
tail -f /usr/local/var/postgres/log/postgresql.log | |
end | |
function unset_psql | |
set -e PGHOST | |
set -e PGUSER | |
set -e PGDATABASE | |
set -e PGPASSWORD | |
end | |
function local_psql | |
unset_psql | |
psql -U postgres -h localhost -d boarding | |
end | |
function dev_psql | |
set_psql | |
psql | |
end | |
# migrate -path ./migrations -database "postgres://dev_user:BbRSk4E8MTUr4mu@localhost:/boarding?sslmode=disable" up | |
# createuser --interactive --pwprompt | |
# The next line updates PATH for the Google Cloud SDK. | |
if [ -f '/Users/dliman/Downloads/google-cloud-sdk/path.fish.inc' ]; . '/Users/dliman/Downloads/google-cloud-sdk/path.fish.inc'; end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment