Fabian42 / bash_scripts

Contains various bash scripts that I have written mainly for myself.
The Unlicense
5 stars 0 forks source link

about: Executables before Enter #35

Open Fabian42 opened 2 years ago

Fabian42 commented 2 years ago

Currently all owned files are only output after pressing Enter. It would be more helpful to output at least all executable files before.

Difficulty: How to determine if a file is executable? Maybe something similar to if [[ -x file ]] can check permissions. perm ruins that a bit, but usually doesn't get applied to the folders where packages tend to put their files. Maybe file type checking could also help.