10 lines
390 B
Bash
10 lines
390 B
Bash
|
#!/bin/bash
|
||
|
if [[ -d ~/.config/fish ]]; then
|
||
|
echo "found existing fish config, backing up"
|
||
|
tar chfI "/home/$USER/.config/fish$(date +%s).tar.zst" "zstd -19 -T0" "/home/$USER/.config/fish"
|
||
|
fi
|
||
|
if [[ -d ~/.config/kitty ]]; then
|
||
|
echo "found existing kitty config, backing up"
|
||
|
tar chfI "/home/$USER/.config/kitty$(date +%s).tar.zst" "zstd -19 -T0" "/home/$USER/.config/kitty"
|
||
|
fi
|