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
[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
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"
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
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
-## dotAle
-
-#Funcionalidad básica
alias ls='ls --color -lh'
alias la='ls --color -lah'
alias rm='sudo rm -rf'
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"
--- /dev/null
+#!/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