update CRLF and update windows script using rclone

This commit is contained in:
A.C.Sukazyo Eyre 2024-02-06 00:28:00 +08:00
parent 4a7609ebf6
commit 32bd3046a4
Signed by: Eyre_S
GPG Key ID: C17CE40291207874
4 changed files with 253 additions and 246 deletions

15
windows_archive.ps1 Normal file
View File

@ -0,0 +1,15 @@
$path_colorls = "$HOME/.config/colorls/"
$path_lsd = "$HOME/AppData/Roaming/lsd/"
$path_PowerShell = "$HOME/Documents/PowerShell/"
$path_neofetch = "$HOME/.config/neofetch/"
$path_oh_my_posh = "$HOME/.config/oh-my-posh/"
$path_hyfetch = "$HOME/.config/hyfetch.json"
$path_bat = "$HOME/AppData/Roaming/bat/"
rclone sync --create-empty-src-dirs -v $path_colorls ./colorls/
rclone sync --create-empty-src-dirs -v $path_lsd ./lsd/
rclone sync --create-empty-src-dirs -v $path_PowerShell ./PowerShell/ --exclude 'Modules/' --exclude 'Scripts/'
rclone sync --create-empty-src-dirs -v $path_neofetch ./neofetch/
rclone sync --create-empty-src-dirs -v $path_oh_my_posh ./oh-my-posh/
rclone copyto -v $path_hyfetch ./hyfetch.json
rclone sync --create-empty-src-dirs -v $path_bat ./bat/

15
windows_restore.ps1 Normal file
View File

@ -0,0 +1,15 @@
$path_colorls = "$HOME/.config/colorls/"
$path_lsd = "$HOME/AppData/Roaming/lsd/"
$path_PowerShell = "$HOME/Documents/PowerShell/"
$path_neofetch = "$HOME/.config/neofetch/"
$path_oh_my_posh = "$HOME/.config/oh-my-posh/"
$path_hyfetch = "$HOME/.config/hyfetch.json"
$path_bat = "$HOME/AppData/Roaming/bat/"
rclone sync --create-empty-src-dirs -v ./colorls/ $path_colorls
rclone sync --create-empty-src-dirs -v ./lsd/ $path_lsd
rclone sync --create-empty-src-dirs -v ./PowerShell/ $path_PowerShell --exclude 'Modules/' --exclude 'Scripts/'
rclone sync --create-empty-src-dirs -v ./neofetch/ $path_neofetch
rclone sync --create-empty-src-dirs -v ./oh-my-posh/ $path_oh_my_posh
rclone copyto -v ./hyfetch.json $path_hyfetch
rclone sync --create-empty-src-dirs -v ./bat/ $path_bat

View File

@ -1,23 +0,0 @@
$path_colorls = "~/.config/colorls/"
$path_lsd = "~/AppData/Roaming/lsd/"
$path_PowerShell = "~/Documents/PowerShell/"
$path_neofetch = "~/.config/neofetch/"
$path_oh_my_posh = "~/.config/oh-my-posh/"
$path_hyfetch = "~/.config/hyfetch.json"
$path_bat = "~/AppData/Roaming/bat/"
rsync -avh $path_colorls ./colorls/
rsync -avh $path_lsd ./lsd/
rsync -avh $path_PowerShell ./PowerShell/ --exclude 'Modules/' --exclude 'Scripts/'
rsync -avh $path_neofetch ./neofetch/
rsync -avh $path_oh_my_posh ./oh-my-posh/
rsync -avh $path_hyfetch ./hyfetch.json
rsync -avh $path_bat ./bat/
rsync -avh ./colorls/ $path_colorls
rsync -avh ./lsd/ $path_lsd
rsync -avh ./PowerShell/ $path_PowerShell --exclude 'Modules/' --exclude 'Scripts/'
rsync -avh ./neofetch/ $path_neofetch
rsync -avh ./oh-my-posh/ $path_oh_my_posh
rsync -avh ./hyfetch.json $path_hyfetch
rsync -avh ./bat/ $path_bat