Compare commits
	
		
			No commits in common. "8fce17c1ee208d6fe5ea9c159a08022f11e4061b" and "c2e059a1905d0262dc2bafed6a2e71cb27c4187b" have entirely different histories.
		
	
	
		
			8fce17c1ee
			...
			c2e059a190
		
	
		
					 2 changed files with 0 additions and 142 deletions
				
			
		|  | @ -1,116 +0,0 @@ | |||
| #!/bin/bash | ||||
| #Script     	: aider_install.sh | ||||
| #Apps			: MRDEVS TOOLS | ||||
| #Description	: Instalar Aider (asistente de codificación con IA) | ||||
| #Author			: Cortana Rosero One <cortana@rosero.one> | ||||
| #Generated by	: Claude Code (claude-3-7-sonnet-20250219) | ||||
| #Created		: 2025/03/20 11:05:23 | ||||
| #Modified		: 2025/03/20 11:05:23 | ||||
| #Version		: 1.2.0 | ||||
| #Use Notes		: | ||||
| #============================================================================== | ||||
| # Derechos de Autor [2025] [Mauro Rosero P. <mauro@rosero.one>] | ||||
| #============================================================================== | ||||
| # Este programa es software libre: usted puede redistribuirlo y/o modificarlo | ||||
| # bajo los términos de la Licencia Pública Affero General de GNU tal como | ||||
| # lo publica la Free Software Foundation, ya sea la versión 3 de la licencia, | ||||
| # o (a su elección) cualquier versión posterior. | ||||
| # | ||||
| # Este programa se distribuye con la esperanza de que sea útil, | ||||
| # pero SIN NINGUNA GARANTÍA; sin siquiera la garantía implícita de | ||||
| # COMERCIABILIDAD o IDONEIDAD PARA UN PROPÓSITO PARTICULAR. Consulte la | ||||
| # Licencia Pública Affero General de GNU para obtener más detalles. | ||||
| # | ||||
| # Debería haber recibido una copia de la Licencia Pública Affero General | ||||
| # junto con este programa. Si no la recibió, consulte <https://www.gnu.org/licenses/>. | ||||
| 
 | ||||
| # Configuración inicial | ||||
| SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||||
| BIN_BASE="bin" | ||||
| BIN_LIBS="lib" | ||||
| BIN_MESG="msg" | ||||
| BIN_CFGS="config" | ||||
| 
 | ||||
| # Leer DEVSPATH desde el archivo de configuración o usar "devs" por defecto | ||||
| if [ -f "$SCRIPT_DIR/$BIN_CFGS/devspath.dat" ]; then | ||||
|   DEVSPATH=$(cat "$SCRIPT_DIR/$BIN_CFGS/devspath.dat") | ||||
| else | ||||
|   DEVSPATH="devs" | ||||
| fi | ||||
| BIN_HOME="$HOME/$DEVSPATH" | ||||
| VERSION=$(cat "$BIN_HOME/$BIN_BASE/$BIN_CFGS/version") | ||||
| BIN_PATH=$BIN_HOME/$BIN_BASE | ||||
| 
 | ||||
| # CHECK SHELL LANGUAGE | ||||
| BIN_LANG=${LANG:0:2} | ||||
| 
 | ||||
| # Importar bibliotecas necesarias | ||||
| source "${BIN_HOME}/${BIN_BASE}/${BIN_LIBS}/base.lib" | ||||
| 
 | ||||
| # Cargar mensajes en el idioma del sistema o español por defecto | ||||
| load_messages "${BIN_HOME}/${BIN_BASE}" "${BIN_MESG}" "${BIN_LANG}" "head" | ||||
| load_messages "${BIN_HOME}/${BIN_BASE}" "${BIN_MESG}" "${BIN_LANG}" "developers" | ||||
| 
 | ||||
| # Variables globales | ||||
| title="${head_000} ${aimsg_000}" | ||||
| AIDER_VENV="$HOME/.aider-venv" | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| # Función para instalar aider | ||||
| install_aider() { | ||||
|   echo "${aimsg_009}" | ||||
|   curl -LsSf https://aider.chat/install.sh | sh | ||||
|    | ||||
|   # El script de instalación de aider ya maneja la configuración y el alias | ||||
| } | ||||
| 
 | ||||
| # Función para desinstalar aider | ||||
| uninstall_aider() { | ||||
|   echo "${aimsg_014}" | ||||
|    | ||||
|   # Ejecutar el desinstalador de aider si existe | ||||
|   if [ -f "$HOME/.local/bin/aider-uninstall" ]; then | ||||
|     $HOME/.local/bin/aider-uninstall | ||||
|   fi | ||||
|    | ||||
|   # Remover archivos de aider | ||||
|   rm -rf "$HOME/.aider" | ||||
|   rm -f "$HOME/.local/bin/aider" | ||||
|   rm -f "$HOME/.local/bin/aider-uninstall" | ||||
|    | ||||
|   echo "${aimsg_016}" | ||||
| } | ||||
| 
 | ||||
| # Función para mostrar uso | ||||
| show_usage() { | ||||
|   echo "${aimsg_017}" | ||||
|   echo "${aimsg_018}" | ||||
|   echo "${aimsg_019}" | ||||
|   echo "${aimsg_020}" | ||||
|   echo "${aimsg_021}" | ||||
| } | ||||
| 
 | ||||
| # Función principal | ||||
| main() { | ||||
|   # Verificar parámetros | ||||
|   if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then | ||||
|     show_usage | ||||
|     exit 0 | ||||
|   elif [ "$1" = "-u" ] || [ "$1" = "--uninstall" ]; then | ||||
|     uninstall_aider | ||||
|     exit 0 | ||||
|   else | ||||
|     # Instalar aider directamente | ||||
|     install_aider | ||||
|      | ||||
|     echo "" | ||||
|     echo "${aimsg_022}" | ||||
|     echo "${aimsg_023}" | ||||
|     echo "${aimsg_024}" | ||||
|   fi | ||||
| } | ||||
| 
 | ||||
| # Ejecutar función principal con los parámetros recibidos | ||||
| main "$@" | ||||
|  | @ -11,32 +11,6 @@ | |||
| #============================================================================== | ||||
| #============================================================================== | ||||
| 
 | ||||
| # Mensajes para aider_install.sh | ||||
| aimsg_000="INSTALACIÓN DE AIDER" | ||||
| aimsg_001="Error: Python 3 no está instalado." | ||||
| aimsg_002="Por favor, instale Python 3 antes de continuar." | ||||
| aimsg_003="Error: pip3 no está instalado." | ||||
| aimsg_004="Por favor, instale pip3 antes de continuar." | ||||
| aimsg_005="Instalando módulo venv..." | ||||
| aimsg_006="Creando entorno virtual para aider..." | ||||
| aimsg_007="Activando entorno virtual..." | ||||
| aimsg_008="Actualizando pip..." | ||||
| aimsg_009="Instalando aider..." | ||||
| aimsg_010="Creando alias para aider..." | ||||
| aimsg_011="Alias añadido a .bashrc" | ||||
| aimsg_012="Alias añadido a .zshrc" | ||||
| aimsg_013="Desactivando entorno virtual..." | ||||
| aimsg_014="Desinstalando aider..." | ||||
| aimsg_015="Entorno virtual de aider eliminado." | ||||
| aimsg_016="Aider ha sido desinstalado completamente." | ||||
| aimsg_017="Uso: $0 [OPCIÓN]" | ||||
| aimsg_018="Opciones:" | ||||
| aimsg_019="  Sin opción    - Instala aider" | ||||
| aimsg_020="  -u, --uninstall - Desinstala aider" | ||||
| aimsg_021="  -h, --help    - Muestra esta ayuda" | ||||
| aimsg_022="Aider ha sido instalado correctamente." | ||||
| aimsg_023="Para usar aider, ejecute 'aider' en una nueva terminal." | ||||
| aimsg_024="La primera vez que lo ejecute deberá configurar su API key de OpenAI." | ||||
| 
 | ||||
| gpmsg_000="INICIALIZAR GPG" | ||||
| gpmsg_001="RESTAURAR BACKUP DE PERFIL" | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue