wip4
This commit is contained in:
22
scripts/vscode-fix-cache.sh
Executable file
22
scripts/vscode-fix-cache.sh
Executable file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
rename() {
|
||||
local dir="$1"
|
||||
echo "Processing: $dir"
|
||||
[ -d "$dir.bak" ] && rm -rf "$dir.bak"
|
||||
mv "$dir" "$dir.bak"
|
||||
}
|
||||
|
||||
dirs=(
|
||||
"$HOME/.config/Code/Cache"
|
||||
"$HOME/.config/Code/CachedData"
|
||||
"$HOME/.config/Code/Code Cache"
|
||||
"$HOME/.config/Code/GPUCache"
|
||||
"$HOME/.config/Code/Service Worker"
|
||||
)
|
||||
|
||||
for dir in "${dirs[@]}"; do
|
||||
rename "$dir"
|
||||
done
|
||||
|
||||
echo "Success"
|
||||
Reference in New Issue
Block a user