Last active
August 31, 2022 04:06
-
-
Save channainfo/afff738d5cd90bbbd4bed2226cd2cae7 to your computer and use it in GitHub Desktop.
useful custom alias for development
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
# Rails | |
alias "rce"="EDITOR=\"code --wait\" bin/rails credentials:edit" | |
alias "rapc"="bundle exec rails assets:clobber RAILS_ENV=production && bundle exec rails assets:precompile RAILS_ENV=production" | |
alias "rr"="bundle exec rspec" | |
alias "rs"="bundle exec rails s -b 0.0.0.0" | |
alias "rc"="bundle exec rails c" | |
alias "st"="spring stop" | |
alias "rcf"="st && rc" | |
alias "opengem"="gem open -e code" | |
alias "geminfo"="opengem" | |
#Flutter | |
alias "fget"="flutter pub get" | |
alias "ftest"="flutter test" | |
alias "frun"="flutter pub run" | |
alias "fgen"="flutter pub run build_runner build" | |
# Terraform | |
alias "tfs"="terraform state" | |
alias "tfa"="terraform apply" | |
alias "tfp"="terraform plan" | |
alias "tfd"="terraform destroy" | |
alias "tfo"="terraform output" | |
alias "tfi"="terraform init" | |
alias "tfw"="terraform workspace" | |
# Docker | |
alias "db"="docker build" | |
alias "de"="docker exec" | |
alias "dr"="docker run" | |
alias "d-c"="docker-compose" | |
alias "di"="docker image" | |
alias "dc"="docker system prune" | |
# custom tool | |
alias "myip"="ipconfig getifaddr en0" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment