summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/bash/alias.sh1
-rwxr-xr-x.scripts/find_nonexistent_installed_packages.sh7
2 files changed, 5 insertions, 3 deletions
diff --git a/.config/bash/alias.sh b/.config/bash/alias.sh
index c4899cf..d5a6c71 100644
--- a/.config/bash/alias.sh
+++ b/.config/bash/alias.sh
@@ -7,6 +7,7 @@ alias gplay="gnome-mplayer"
# list hidden files - if directory do NOT show contents and dont display ".."
alias lh="ls -d .[^.]*"
+alias la="ls -a"
# resizing terminal
alias r="resize_to_min 100 35"
diff --git a/.scripts/find_nonexistent_installed_packages.sh b/.scripts/find_nonexistent_installed_packages.sh
index a7f857e..a75f687 100755
--- a/.scripts/find_nonexistent_installed_packages.sh
+++ b/.scripts/find_nonexistent_installed_packages.sh
@@ -1,11 +1,12 @@
#!/bin/bash
+source /etc/make.conf
+installed=$(find "`portageq vdb_path`" -maxdepth 2 -mindepth 2 -printf "%P\n" | xargs qatom | awk '{print $1 "/" $2}')
-source "/etc/make.conf"
-installed=$(find /var/db/pkg -maxdepth 2 -mindepth 2 -printf "%P\n" | xargs qatom | awk '{print $1 "/" $2}')
+portdirs="$(portageq portdir) $(portageq portdir_overlay)"
for package in ${installed}
do
- for overlay in "/usr/portage/" ${PORTDIR_OVERLAY}
+ for overlay in ${portdirs}
do
# as soon as we find a package => got to next package in outer loop
[[ -d "${overlay}/${package}" ]] && continue 2;