Mise à jour de 'dotfiles/.zshrc'

This commit is contained in:
nodiego 2022-09-23 13:18:05 +02:00
parent bf0cbb4bab
commit a297aa168f
1 changed files with 20 additions and 12 deletions

View File

@ -117,17 +117,17 @@ source $ZSH/oh-my-zsh.sh
# Alias sauvegardes système archlinux (/etc, /var, /srv, pkg.list, aur.lit, pacman.database)
## sauvegarde de /etc
alias savetc="sudo tar -cjfv /mnt/Salva/salva-linux/salvalinux-system-archlinux/etc-backup.tar.bz2 /etc"
alias savetc="sudo tar -cjfv /mnt/Kiosko/SalvaKiosko/salvacharco-archlinux-terminal/etc-backup.tar.bz2 /etc"
## Sauvegarde de /var
alias savvar="sudo tar -cjfv /mnt/Salva/salva-linux/salvalinux-system-archlinux/var-backup.tar.bz2 /var"
alias savvar="sudo tar -cjfv /mnt/Kiosko/SalvaKiosko/salvacharco-archlinux-terminal/var-backup.tar.bz2 /var"
## Sauvegarde de /srv
alias savsrv="sudo tar -cjfv /mnt/Salva/salva-linux/salvalinux-system-archlinux/srv-backup.tar.bz2 /srv"
alias savsrv="sudo tar -cjfv /mnt/Kiosko/SalvaKiosko/salvacharco-archlinux-terminal/srv-backup.tar.bz2 /srv"
## Récupérer la liste des paquets installésrsys
alias savpkglist="sudo pacman -Qqe | grep -vx "$(pacman -Qqm)" > /mnt/Salva/salva-linux/salvalinux-system-archlinux/pkg.list"
alias savpkglist="sudo pacman -Qqe | grep -vx "$(pacman -Qqm)" > /mnt/Kiosko/SalvaKiosko/salvacharco-archlinux-terminal/pkg.list"
## Récupérer la liste des paquets AUR
alias savpkgaur="sudo pacman -Qqme > /mnt/Salva/salva-linux/salvalinux-system-archlinux/aur.list"
alias savpkgaur="sudo pacman -Qqme > /mnt/Kiosko/SalvaKiosko/salvacharco-archlinux-terminal/aur.list"
## Sauvegarde de la base de donnée locale de pacman (/var/lib/pacman/local/)
alias savpacdatabase="sudo tar -cjfv /mnt/Salva/salva-linux/salvalinux-system-archlinux/pacman-database.tar.bz2 /var/lib/pacman/local"
alias savpacdatabase="sudo tar -cjfv /mnt/Kiosko/SalvaKiosko/salvacharco-archlinux-terminal/pacman-database.tar.bz2 /var/lib/pacman/local"
## Alias résumé des commandes supra ##
alias savtodo="savetc && savvar && savsrv && savpkglist && savpkaur && savpacdatabase"
@ -136,13 +136,13 @@ alias savtodo="savetc && savvar && savsrv && savpkglist && savpkaur && savpacdat
# Alias rsync
## RSYNC de /Salva vers /Stock
alias rsyncsalvatostock="sudo rsync -aDv --info=progress2 --stats --delete /mnt/Salva/ /mnt/Stock/Sauvegardes/Disque\ Salva"
alias rsyncsalvatostock="sudo rsync -aADXv --info=progress2 --stats --delete /mnt/Salva/ /mnt/Stock/Sauvegardes/Disque\ Salva"
## RSYNC rsync de /Stock vers disque dur externe
alias rsyncstocktohdd="sudo rsync -aDv --info=progress2 --stats --delete /mnt/Stock/ /run/media/dondiego/hdd-stock-3Go/Disque Stock"
alias rsyncstocktohdd="sudo rsync --ADXv --info=progress2 --stats --delete /mnt/Stock/ /run/media/dondiego/hdd-stock-3Go/Disque Stock"
## RSYNC /timeshift vers /Stock
alias rsynctimeshifttostock="sudo rsync -aDv --info=progress2 --stats --delete /timeshift/ /mnt/Stock/Sauvegardes/Disque\ Salva/salva-linux/salvalinux-timeshift/"
## RSYNC /timeshift vers /Kiosko
alias rsynctimeshiftkiosko="sudo rsync -aADXv --info=progress2 --stats --delete /timeshift/ /mnt/Kiosko/SalvaKiosko/salvacharco-timeshift"
# Alias pacman
## mise à jour de la liste des paquets disponibles sur les mirroirs
@ -154,6 +154,14 @@ alias pacmanqdt="sudo pacman -Qdt"
# Alias divers
## relancer proprement Cinnamon
alias cinnrestart="cinnamon --replace --screen=0 -d :0 &"
alias cinnamonrestart="cinnamon --replace --screen=0 -d :0 &"
## configurer UFW
alias ufwconfig="sudo ufw default deny && sudo ufw allow from 192.168.0.0/24 && sudo ufw allow Deluge && sudo ufw limit ssh && sudo ufw enable"
## Configurer .conky
alias conkyconfig="nano ~/.config/conky/conky.conf"
# Alias des configurations
alias zshrcconfig="nano ~/.zshrc"
alias ohmyzshconfig="nano ~/.oh-my-zsh"
alias p10kconfig="nano ~/.p10k.zsh"
alias mocconfig="nano ~/.moc/config"