inputrc restore

This commit is contained in:
pvincent
2026-08-21 01:14:45 +04:00
parent 2c9856ba32
commit f70bdb38bf
+1 -1
View File
@@ -9,8 +9,8 @@ BACKUP_SUFFIX='.ORIGINAL'
function restore {
local path="$1"
local backup="${path}${BACKUP_SUFFIX}"
sudo rm "$path"
if [[ -f "$backup" ]]; then
sudo rm "$path"
sudo mv "$backup" "$path"
echo "$path restored!"
fi