Last active
February 25, 2020 22:10
-
-
Save ldelelis/eb7b131a0877d5f06d141e87b6d5ec5f to your computer and use it in GitHub Desktop.
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
alias a="alias" # extremely useful | |
# Open a given ansible module's documentation in the currently open browser as a new tab | |
# example: ansearch copy | |
ansearch() { | |
python -m webbrowser -t "https://docs.ansible.com/ansible/latest/modules/$1_module.html" >/dev/null | |
} | |
# Open all file in current directory matching an extension as tabs | |
# example: vimt tf # open all terraform files as tabs | |
vimt() { | |
vim -p *.$1 | |
} | |
# DevOps Aliases | |
## Vagrant | |
a vd="vagrant destroy" | |
a vdf="vagrant destroy -f" | |
a vp="vagrant provision" | |
a vr="vagrant reload" | |
a vrnp="vagrant reload --no-provision" | |
a vs="vagrant status" | |
a vss="vagrant ssh " | |
a vu="vagrant up" | |
## Molecule | |
a mc="molecule converge" | |
a md="molecule destroy" | |
a mdc="md && mc" | |
a ml="molecule login" | |
## Terraform | |
a ta="terraform apply" | |
a td="terraform destroy" | |
a tp="terraform plan" | |
## Ansible | |
a ap="ansible-playbook" | |
a av="ansible-vault" | |
a vmy="vim main.yml" # obviously vim is an nvim alias here lol | |
## docker-compose | |
a dcd="docker-compose down" | |
a dcdv="docker-compose down -v" | |
a dce="docker-compose exec" | |
a dcp="docker-compose ps" | |
a dcu="docker-compose up" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment