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
# ############################################## | |
# ## DYNAMIC GIT CONFIGURATOR FOR ZSH SHELL ## | |
# ## Automates Git configuration on-the-fly ## | |
# ## based on the current working directory ## | |
# ## and user-defined scripts. ## | |
# ############################################## | |
# ## - Auto-loads with Zsh | |
# ## - Hooks into directory change events | |
# ## - Executes Git configuration scripts | |
# ## - Allows manual addition of Git configs |
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
#!/bin/bash | |
# This script updates Git configurations for different projects stored in a JSON file within the user's .config directory | |
# Define the path to the JSON configuration file located in the .config directory of the user's home directory | |
CONFIG_FILE="$HOME/.config/git-configs.json" | |
# Check if the configuration file exists. If it does not, create a new JSON file with empty object initialization | |
if [ ! -f "$CONFIG_FILE" ]; then | |
echo "{}" > "$CONFIG_FILE" |
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
#!/bin/bash | |
# Git Configuration Automation Script with Directory Management | |
# ------------------------------------------------------------- | |
# This enhanced script automates the process of applying Git configurations | |
# based on the current working directory, ensuring all repositories for a specific | |
# client use the correct Git user name and email settings. It is essential for maintaining | |
# consistent commit metadata across projects and minimizing the risk of commits being | |
# attributed to the wrong user. Additionally, it now includes functionality to detect | |
# when a project (repository) is deleted from or re-added to the client's directory, |
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
#!/bin/bash | |
# Configurar ARN de tu tema SNS de AWS y URL del canal de YouTube | |
sns_topic_arn="arn:aws:sns:region:account:id-name" | |
youtube_channel_url="$1" | |
dropbox_folder="$2" | |
# Verificar que se proporcionen ambos argumentos | |
if [ "$#" -ne 2 ]; then | |
echo "Uso: $0 URL_DEL_CANAL /ruta/en/Dropbox" |