mirror of
https://github.com/systemd/systemd.git
synced 2025-09-03 21:44:51 +03:00
shell-completion: only offer devices for completion
This skips directories and other stuff like /dev/core, /dev/initctl or
/dev/log.
(cherry picked from commit bde35f4a91
)
This commit is contained in:
committed by
Zbigniew Jędrzejewski-Szmek
parent
4ebcdcb136
commit
2034de6157
@@ -32,10 +32,7 @@ __get_all_sysdevs() {
|
||||
}
|
||||
|
||||
__get_all_device_nodes() {
|
||||
local i
|
||||
for i in /dev/* /dev/*/* /dev/*/*/*; do
|
||||
echo $i
|
||||
done
|
||||
find /dev -xtype b -o -xtype c
|
||||
}
|
||||
|
||||
__get_all_device_units() {
|
||||
|
Reference in New Issue
Block a user