From e6327c3c4335fab27a28436b4c851b5edc28394c Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Wed, 31 Jan 2024 18:37:16 +0300 Subject: [PATCH] Fix : Add Gradle lock fix. --- .config/bash/module/Fix.sh | 5 +++++ .doc/Bash.md | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.config/bash/module/Fix.sh b/.config/bash/module/Fix.sh index 7f7dbda..79121a9 100644 --- a/.config/bash/module/Fix.sh +++ b/.config/bash/module/Fix.sh @@ -17,3 +17,8 @@ function fix_ethernet_speed() { function fix_files_sftp() { secret-tool clear protocol sftp } + +# Delete lost Gradle lock files. +function fix_gradle_lock() { + cd "${HOME}/.gradle" && find -type f | grep \\.lock$ | parallel -- rm {} +} diff --git a/.doc/Bash.md b/.doc/Bash.md index 2b531b5..5d8299e 100644 --- a/.doc/Bash.md +++ b/.doc/Bash.md @@ -79,7 +79,7 @@ Command|Description Command|Description ---|--- `ca [NAME]`|Attach/create container box in current directory with specified name. By default uses current dir name. -`ck [NAME]`|Remove container box with specified name. By default uses `main` name. +`ck [NAME]`|Remove container box with specified name. By default uses current dir name. `cka`|Remove all container boxes. `cl`|List all container boxes. @@ -181,6 +181,7 @@ Command|Description ---|--- `fix_ethernet_speed `|Fix when ethernet mistakenly detects 100 Mb instead of 1000 Mb. SPEED is one of 10/100/1000 etc. `fix_files_sftp`|Fix nautilus after typing wrong sftp password. +`fix_gradle_lock`|Delete lost Gradle lock files. ## Git. @@ -373,7 +374,7 @@ Command|Description `tl`|List running sessions. `tns [NAME]`|Assign name to session. Uses current dir name by default. `tnw [NAME]`|Assign name to window. Uses current dir name by default. -`tk [NAME]`|Kill specified session. By default it kills `main` session. +`tk [NAME]`|Kill specified session. By default uses current dir name. `tka`|Kill all sessions. ## Todo.