1
0

minor commit

This commit is contained in:
2025-03-29 22:27:32 +01:00
parent 7d43d9abd3
commit a35a4793e3
4 changed files with 17 additions and 11 deletions

3
.gitmodules vendored
View File

@@ -4,3 +4,6 @@
[submodule "scripts/pokemon-colorscripts"]
path = scripts/pokemon-colorscripts
url = https://gitlab.com/phoneybadger/pokemon-colorscripts.git
[submodule "zsh/zsh-autosuggestions"]
path = zsh/zsh-autosuggestions
url = https://github.com/zsh-users/zsh-autosuggestions

View File

@@ -4,6 +4,8 @@
- alacritty
- zsh
- zsh-autosuggestions
- zsh-completions
- homebrew/linuxbrew
- stow
- rust toolchain

View File

@@ -14,19 +14,19 @@ alias d='dirs -v'
for index ({1..9}) alias "c$index"="cd +${index}"; unset index
_get_aws_config_path() {
local config_path="${AWS_CONFIG_FILE:-$HOME/.aws/config}"
echo "$config_path"
local config_path="${AWS_CONFIG_FILE:-$HOME/.aws/config}"
echo "$config_path"
}
# 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 format will be `#[<label>]`
# The format will be `#[<label value>]`
# Example, using "admin" as the default profile:
#
# > [default]
# > region = eu-south-2
# >
# > #[aws-vault-default] ---> Marking the profile with the label
# > #[<label value>] ---> Marking the profile with the label
# > [profile admin]
# > source_profile=default
# > region = eu-south-2
@@ -56,15 +56,15 @@ _terra_cmd() {
local cmd_args=()
if [[ -z "$1" ]]; then
echo "Error: Missing required first argument"
echo "Usage: tf [terraform|terragrunt] [additional args]"
return 1
echo "Error: Missing required first argument"
echo "Usage: _terra_cmd [terraform|terragrunt] [additional args]"
return 1
fi
if [[ "$1" != "terraform" && "$1" != "terragrunt" ]]; then
echo "Error: First argument must be either 'terraform' or 'terragrunt'"
echo "Usage: my_function [terraform|terragrunt] [additional args]"
return 1
echo "Error: First argument must be either 'terraform' or 'terragrunt'"
echo "Usage: _terra_cmd [terraform|terragrunt] [additional args]"
return 1
fi
# If we get here, the first argument is valid
@@ -73,7 +73,7 @@ _terra_cmd() {
while [[ $# -gt 0 ]]; do
case $1 in
-p|--profile)
-p | --profile)
if [[ $# -gt 1 ]]; then
aws_vault_profile="$2"
shift 2