From 3ea1abef9ff16724c0fce7776c87bff686a7f1bd Mon Sep 17 00:00:00 2001 From: Tu Puta Madre Date: Sun, 9 Aug 2026 13:24:52 -0600 Subject: [PATCH] 226H9.55893-Starfire --- .bashrc | 14 ++++++++++++-- .gitconfig | 8 ++++---- .zshrc | 6 ------ config/zsh/aliases.zsh | 20 +------------------- dotAle.sh | 39 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 56 insertions(+), 31 deletions(-) create mode 100644 dotAle.sh diff --git a/.bashrc b/.bashrc index b65a62f..ec950c3 100644 --- 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 diff --git a/.gitconfig b/.gitconfig index 5ba6219..b898f79 100644 --- a/.gitconfig +++ b/.gitconfig @@ -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 e6a1d57..22d2e97 100644 --- 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 diff --git a/config/zsh/aliases.zsh b/config/zsh/aliases.zsh index dcfcdf7..bd81624 100644 --- a/config/zsh/aliases.zsh +++ b/config/zsh/aliases.zsh @@ -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 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 -- 2.47.3