]> git.ale.wales Git - dotAle.git/commitdiff
226H9.55893-Starfire
authorTu Puta Madre <chinga@tu.madre>
Sun, 9 Aug 2026 19:24:52 +0000 (13:24 -0600)
committerTu Puta Madre <chinga@tu.madre>
Sun, 9 Aug 2026 19:24:52 +0000 (13:24 -0600)
.bashrc
.gitconfig
.zshrc
config/zsh/aliases.zsh
dotAle.sh [new file with mode: 0644]

diff --git a/.bashrc b/.bashrc
index b65a62fe3b67bc03cf8efa74b49171cc9dee152d..ec950c311ae53f4e7a2e340ae9164e3564938465 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -1,7 +1,17 @@
 source /home/ale/.$(cat /etc/hostname)rc
-
+export XDG_CONFIG_HOME="/home/ale/.config"
+export XDG_CACHE_HOME="/home/ale/.cache"
+export XDG_DATA_HOME="/home/ale/.local/share"
+export XDG_STATE_HOME="/home/ale/.local/state"
 alias ls='ls --color -lh'
 alias la='ls --color -lah'
-alias rm='rm -rf'
+alias rm='sudo rm -rf'
 alias ip='ip -br -c a'
 alias clear='clear && fastfetch'
+alias m="sudo mount"
+alias um="sudo umount"
+alias mi="mediainfo"
+alias ska="sudo kak"
+alias pip="PIP_BREAK_SYSTEM_PACKAGES=1 pip" # pinche pip castroso
+alias nsync="rsync -rPavh"
+fastfetch
index 5ba621979e57612e1d3cf1cef91f8101bbcffd8b..b898f7947063b78b213b76be26514cb4a1e18c33 100644 (file)
@@ -1,7 +1,7 @@
 [safe]
-       directory = /git/dotAle
+    directory = /git/dotAle
 [user]
-       email = chinga@tu.madre
-       name = Tu Puta Madre
+    email = chinga@tu.madre
+    name = Tu Puta Madre
 [advice]
-       defaultBranchName = false
+    defaultBranchName = false
diff --git a/.zshrc b/.zshrc
index e6a1d575447a3262170f00de1de7b952c0f2c90c..22d2e972fd4fae64f3e8597a887452cd56c37803 100644 (file)
--- a/.zshrc
+++ b/.zshrc
@@ -7,7 +7,6 @@ export XDG_DATA_HOME="/home/ale/.local/share"
 export XDG_STATE_HOME="/home/ale/.local/state"
 export PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin:/mbin"
 
-# Prompt String 1
 if [[ $TERM == "linux" ]]; then
     bkg="yellow"
     nam="yellow"
@@ -33,12 +32,10 @@ precmd() {
 PS1='%K{$bkg}%F{$tme}%B $(/mbin/tiempo -s) %b%f%k%# '
 RPS1=' [$ETIME]%(?.%F{green}√.%F{red}?%?)%f'
 
-# Historial en directorio de cache
 HISTSIZE=10000000
 SAVEHIST=10000000
 HISTFILE=$XDG_CACHE_HOME/zsh/hist
 
-# Autocompletar con TAB
 autoload -U compinit
 zstyle ':completion:*' menu select
 zmodload zsh/complist
@@ -46,10 +43,7 @@ touch $XDG_CACHE_HOME/zsh/.zcompdump
 compinit -d $XDG_CACHE_HOME/zsh/.zcompdump
 _comp_options+=(globdots)
 
-# Importar aliases
 source $XDG_CONFIG_HOME/zsh/aliases.zsh
 source /home/ale/.$(cat /etc/hostname)rc
 
-## PLUGINS
-# Load syntax highlighting; should be last. Source: https://github.com/zdharma/fast-syntax-highlighting
 source $XDG_CONFIG_HOME/zsh/plugins/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh 2>/dev/null
index dcfcdf72fece27ba9b33aba4e0810e98b2ea7930..bd816248178e5b52575a84f8521c71a45fbf50bc 100644 (file)
@@ -1,6 +1,3 @@
-## dotAle
-
-#Funcionalidad básica
 alias ls='ls --color -lh'
 alias la='ls --color -lah'
 alias rm='sudo rm -rf'
@@ -18,27 +15,12 @@ alias sx="startx"
 alias xr="sudo xbps-remove -Ro"
 alias xq="xbps-query -Rs"
 alias xql="xbps-query -l"
-alias hbk="flatpak run --command=HandBrakeCLI fr.handbrake.ghb"
 
-#Conecciones
 alias rootNami='ssh root@192.168.0.100'
-alias rootPebbles='ssh root@192.168.0.99'
+alias rootFrankie='ssh root@192.168.0.99'
 alias rootIONOS='ssh root@74.208.186.244'
 alias rootHispania='ssh root@94.143.141.66'
 alias rootFoundry='ssh root@66.179.137.42'
-
 #alias onePiece="sudo /mbin/onePiece"
 #alias piedradura="sudo /mbin/piedradura"
 #alias vilma="mpv .opus/vilma.opus & xfreerdp /u:grbl /p:3018 /h:720 /w:1280 /v:192.168.1.6:3389"
-
-
-#Vim... si es que sigo usandolo
-alias vimrc="vim ~/.config/vim/vimrc"
-alias vimwiki="vim -c VimwikiIndex"
-alias diario="vim -c VimwikiMakeDiaryNote"
-
-
-#alias base32="base32 -w 0" # eliminar el puto wrap de mierda, como me cagan
-#alias img_64x64="convert -thumbnail 64x64^"
-#alias cuando="cuando.sh"
-#alias vv="vimv"
diff --git a/dotAle.sh b/dotAle.sh
new file mode 100644 (file)
index 0000000..c733649
--- /dev/null
+++ b/dotAle.sh
@@ -0,0 +1,39 @@
+#!/bin/bash
+
+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
+
+isVoid=false
+if [[ $(ps -p 1 -o comm=) == "runit" ]]; then
+    isVoid=true
+fi
+
+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