Config/navi: Add fd cheat to find desktop files
This commit is contained in:
@ -107,11 +107,15 @@ yes "The quick brown fox jumps over the lazy dog" | head -c <size> > <output>
|
|||||||
# For-loop in fish shell
|
# For-loop in fish shell
|
||||||
for o in <objects>; <action>; end
|
for o in <objects>; <action>; end
|
||||||
|
|
||||||
% shell
|
% fd
|
||||||
# Find files larger or smaller than a specified size in the current directory
|
# Find files larger or smaller than a specified size in the current directory
|
||||||
fd --type file --size <mode><size> -- "<regex>" .
|
fd --type file --size <mode><size> -- "<regex>" .
|
||||||
$ mode: echo -e "+\t\tFind Larger Files\n-\t\tFind Smaller Files" --- --column 1
|
$ mode: echo -e "+\t\tFind Larger Files\n-\t\tFind Smaller Files" --- --column 1
|
||||||
|
|
||||||
|
% fd
|
||||||
|
# Find .desktop files of an application
|
||||||
|
fd ".*\.desktop" / | rg --trim --pretty "<application>"
|
||||||
|
|
||||||
% gdu
|
% gdu
|
||||||
# Visualize storage usage on all mounted disks
|
# Visualize storage usage on all mounted disks
|
||||||
sudo gdu -d
|
sudo gdu -d
|
||||||
|
Reference in New Issue
Block a user