minor commit
This commit is contained in:
3
.gitmodules
vendored
3
.gitmodules
vendored
@@ -4,3 +4,6 @@
|
|||||||
[submodule "scripts/pokemon-colorscripts"]
|
[submodule "scripts/pokemon-colorscripts"]
|
||||||
path = scripts/pokemon-colorscripts
|
path = scripts/pokemon-colorscripts
|
||||||
url = https://gitlab.com/phoneybadger/pokemon-colorscripts.git
|
url = https://gitlab.com/phoneybadger/pokemon-colorscripts.git
|
||||||
|
[submodule "zsh/zsh-autosuggestions"]
|
||||||
|
path = zsh/zsh-autosuggestions
|
||||||
|
url = https://github.com/zsh-users/zsh-autosuggestions
|
||||||
|
|||||||
@@ -4,6 +4,8 @@
|
|||||||
|
|
||||||
- alacritty
|
- alacritty
|
||||||
- zsh
|
- zsh
|
||||||
|
- zsh-autosuggestions
|
||||||
|
- zsh-completions
|
||||||
- homebrew/linuxbrew
|
- homebrew/linuxbrew
|
||||||
- stow
|
- stow
|
||||||
- rust toolchain
|
- rust toolchain
|
||||||
|
|||||||
@@ -14,19 +14,19 @@ alias d='dirs -v'
|
|||||||
for index ({1..9}) alias "c$index"="cd +${index}"; unset index
|
for index ({1..9}) alias "c$index"="cd +${index}"; unset index
|
||||||
|
|
||||||
_get_aws_config_path() {
|
_get_aws_config_path() {
|
||||||
local config_path="${AWS_CONFIG_FILE:-$HOME/.aws/config}"
|
local config_path="${AWS_CONFIG_FILE:-$HOME/.aws/config}"
|
||||||
echo "$config_path"
|
echo "$config_path"
|
||||||
}
|
}
|
||||||
|
|
||||||
# This label will be set in a comment in the ~/.aws/config file right before
|
# This label will be set in a comment in the ~/.aws/config file right before
|
||||||
# the definition of the profile we want to use as the default.
|
# the definition of the profile we want to use as the default.
|
||||||
# The format will be `#[<label>]`
|
# The format will be `#[<label value>]`
|
||||||
# Example, using "admin" as the default profile:
|
# Example, using "admin" as the default profile:
|
||||||
#
|
#
|
||||||
# > [default]
|
# > [default]
|
||||||
# > region = eu-south-2
|
# > region = eu-south-2
|
||||||
# >
|
# >
|
||||||
# > #[aws-vault-default] ---> Marking the profile with the label
|
# > #[<label value>] ---> Marking the profile with the label
|
||||||
# > [profile admin]
|
# > [profile admin]
|
||||||
# > source_profile=default
|
# > source_profile=default
|
||||||
# > region = eu-south-2
|
# > region = eu-south-2
|
||||||
@@ -56,15 +56,15 @@ _terra_cmd() {
|
|||||||
local cmd_args=()
|
local cmd_args=()
|
||||||
|
|
||||||
if [[ -z "$1" ]]; then
|
if [[ -z "$1" ]]; then
|
||||||
echo "Error: Missing required first argument"
|
echo "Error: Missing required first argument"
|
||||||
echo "Usage: tf [terraform|terragrunt] [additional args]"
|
echo "Usage: _terra_cmd [terraform|terragrunt] [additional args]"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "$1" != "terraform" && "$1" != "terragrunt" ]]; then
|
if [[ "$1" != "terraform" && "$1" != "terragrunt" ]]; then
|
||||||
echo "Error: First argument must be either 'terraform' or 'terragrunt'"
|
echo "Error: First argument must be either 'terraform' or 'terragrunt'"
|
||||||
echo "Usage: my_function [terraform|terragrunt] [additional args]"
|
echo "Usage: _terra_cmd [terraform|terragrunt] [additional args]"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# If we get here, the first argument is valid
|
# If we get here, the first argument is valid
|
||||||
@@ -73,7 +73,7 @@ _terra_cmd() {
|
|||||||
|
|
||||||
while [[ $# -gt 0 ]]; do
|
while [[ $# -gt 0 ]]; do
|
||||||
case $1 in
|
case $1 in
|
||||||
-p|--profile)
|
-p | --profile)
|
||||||
if [[ $# -gt 1 ]]; then
|
if [[ $# -gt 1 ]]; then
|
||||||
aws_vault_profile="$2"
|
aws_vault_profile="$2"
|
||||||
shift 2
|
shift 2
|
||||||
|
|||||||
1
zsh/zsh-autosuggestions
Submodule
1
zsh/zsh-autosuggestions
Submodule
Submodule zsh/zsh-autosuggestions added at 0e810e5afa
Reference in New Issue
Block a user