inputrc restore
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user