]> git.ale.wales Git - dotAle.git/commitdiff
226HE.42818-Starfire master
authorTu Puta Madre <chinga@tu.madre>
Fri, 14 Aug 2026 16:16:35 +0000 (10:16 -0600)
committerTu Puta Madre <chinga@tu.madre>
Fri, 14 Aug 2026 16:16:35 +0000 (10:16 -0600)
ale.sh [deleted file]
dotAle.sh [changed mode: 0644->0755]

diff --git a/ale.sh b/ale.sh
deleted file mode 100755 (executable)
index 73671b9..0000000
--- a/ale.sh
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/bin/bash
-
-# Verifica que se ejecute en directorio correcto. Realmente sirve para verificar que exista /git/dotAle/ ya que esta especificada esa direccón en el script. Sé que sería más prudente usar la direccón actual pero daría más pauta a errores inesperados y código más ilegible
-if [ "$PWD" != "/git/dotAle" ]; then
-    echo "ERROR: Debes ubicarte en /git/dotAle para ejecutar el script.\n\t... te encuentras en\t $PWD"
-    exit 2
-fi
-
-# Comprobar init
-isVoid=false
-if [[ $(ps -p 1 -o comm=) == "runit" ]]; then
-    isVoid=true
-fi
-
-# Main
-echo "#Configuración local" > /home/ale/.$(cat /etc/hostname)rc
-if [[ $isVoid == true ]]; then
-    ln -sf /git/dotAle/.zshrc /home/ale/.zshrc
-    ln -sf /git/dotAle/.gitconfig /home/ale/.gitconfig
-    mkdir -p /home/ale/.config
-    mkdir -p /home/ale/.cache/zsh
-    touch /home/ale/.cache/zsh/hist
-    for dir in /git/dotAle/config/*; do
-        if [ -d /home/ale/.config/${dir##*/} ]; then
-            rm -rf /home/ale/.config/${dir##*/}
-        fi
-        ln -sf /git/dotAle/config/${dir##*/} /home/ale/.config/
-    done
-    if [ -f /home/ale/.zcompdump ]; then
-        rm /home/ale/.zcompdump
-    fi
-    mkdir -p /home/ale/.ssh
-    ln -sf /git/dotAle/ssh/* /home/ale/.ssh/
-else
-    ln -sf /git/dotAle/.bashrc /home/ale/.bashrc
-    ln -sf /git/dotAle/.gitconfig /home/ale/.gitconfig
-    mkdir -p /home/ale/.config
-    cp -r /git/dotAle/config/* /home/ale/.config/
-    rm -rf /home/ale/.config/zsh
-    mkdir -p /home/ale/.ssh
-    ln -sf /git/dotAle/ssh/* /home/ale/.ssh/
-fi
old mode 100644 (file)
new mode 100755 (executable)