diff --git a/installation.md b/installation.md index 7b0e2eb..7f89af6 100644 --- a/installation.md +++ b/installation.md @@ -75,3 +75,19 @@ RESH also adds a following lines to `~/.zshrc` and `~/.bashrc` to load itself on ``` :information_source: RESH follows [XDG directory specification ⇗](https://maex.me/2019/12/the-power-of-the-xdg-base-directory-specification/) + +#### Backup files + +During update **config** and **history** files are backed up to: + +- `~/.config/resh.toml.backup-` +- `~/.local/share/resh/history.reshjson.backup-` +- `$XDG_DATA_HOME/resh/history.reshjson.backup-` (if set) + +Backups allow safe rollbacks during or after installation. +They are not deleted automatically. You can delete them with: + +```shell +rm ~/.config/resh.toml.backup-* +rm ${XDG_DATA_HOME-~/.local/share}/resh/history.reshjson.backup-* +``` \ No newline at end of file diff --git a/scripts/install.sh b/scripts/install.sh index 2f3f83f..16c733c 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -86,7 +86,7 @@ if [ -z "${__RESH_VERSION-}" ]; then # First installation # Stop the daemon anyway just to be sure # But don't output anything - ./scripts/resh-daemon-stop.sh -q + ./scripts/resh-daemon-stop.sh -q ||: else ./scripts/resh-daemon-stop.sh fi diff --git a/scripts/rawinstall.sh b/scripts/rawinstall.sh index f951f5d..bfcffc2 100755 --- a/scripts/rawinstall.sh +++ b/scripts/rawinstall.sh @@ -94,7 +94,7 @@ fname_binaries="resh_${version}_${OS}_${ARCH}.tar.gz" dl_binaries="$dl_base/$fname_binaries" -tmpdir="$(mktemp -d /tmp/resh-rawinstall-XXXXXX)" +tmpdir="$(mktemp -d /tmp/resh-rawinstall-XXXXXXXX)" # echo # echo "Changing to $tmpdir ..." cd "$tmpdir"