mirror of
https://github.com/systemd/systemd.git
synced 2024-11-23 18:23:32 +08:00
shell-completion: only offer devices for completion
This skips directories and other stuff like /dev/core, /dev/initctl or /dev/log.
This commit is contained in:
parent
05095e1f3f
commit
bde35f4a91
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user