mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
added scan function that find out what libs are linking to a specific package (taken from wonder https://github.com/wonder)
This commit is contained in:
parent
ed9d0c5e81
commit
ebdfc177cc
1 changed files with 9 additions and 2 deletions
|
|
@ -1,7 +1,14 @@
|
||||||
##some functions
|
##some functions
|
||||||
###############
|
## scan function that find out what libs are linking to a specific package (taken from wonder https://github.com/wonder)
|
||||||
|
scan () {
|
||||||
|
pacman -Qlq $1 | xargs file | grep ELF | awk -F: '{print $1}' |
|
||||||
|
while read elfobj;
|
||||||
|
do readelf -d $elfobj | sed -n 's|.*NEEDED.*\[\(.*\)\].*|'$elfobj' -- \1|p'
|
||||||
|
done
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
##--Daemons--##
|
##--Daemons--##
|
||||||
###############
|
|
||||||
# starts, stops, restarts and check status of daemons
|
# starts, stops, restarts and check status of daemons
|
||||||
|
|
||||||
dstart() {
|
dstart() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue