From c4e27e1020ebaaccea71992e02f713840209f002 Mon Sep 17 00:00:00 2001 From: David Andreoletti Date: Thu, 14 Mar 2024 14:43:48 +0800 Subject: [PATCH] file_directory: added alias to find all broken symlinks --- .oh-my-shell/shellrc/plugins/file_directory/aliases.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.oh-my-shell/shellrc/plugins/file_directory/aliases.sh b/.oh-my-shell/shellrc/plugins/file_directory/aliases.sh index 5539495b..6d99a289 100755 --- a/.oh-my-shell/shellrc/plugins/file_directory/aliases.sh +++ b/.oh-my-shell/shellrc/plugins/file_directory/aliases.sh @@ -9,3 +9,7 @@ alias touch='f_file_directory_create_missing_dirs_file 1 ' # Create file and possibly missing parent, then edit # usage: touch /path/to/missing/dir/file.txt alias edit='f_file_directory_create_missing_dirs_file 0 ' + +# Find all broken symbolic links +# usage: find_broken_symbolic_link /path/to/some/folder +alias find_broken_symbolic_link='find -L -xtype l'