aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-12-22 05:21:04 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-12-22 05:21:04 +0300
commit3c3a103b50a6d8d358518d45cc82478e76d34935 (patch)
tree1dcf3d1664fed8260eda797412eaa090989a5d41
parent.vimrc: set nowrap (diff)
downloadlinux-home-3c3a103b50a6d8d358518d45cc82478e76d34935.tar.gz
linux-home-3c3a103b50a6d8d358518d45cc82478e76d34935.zip
add list_manually_installed_packages_ubuntu
-rw-r--r--%HOME%/.bashrc7
1 files changed, 7 insertions, 0 deletions
diff --git a/%HOME%/.bashrc b/%HOME%/.bashrc
index 80012b5..33fe277 100644
--- a/%HOME%/.bashrc
+++ b/%HOME%/.bashrc
@@ -62,6 +62,13 @@ alias tree='tree -a'
alias cls='echo -en "\ec"'
+list_manually_installed_packages_ubuntu() (
+ set -o errexit -o nounset -o pipefail
+
+ comm -23 <( apt-mark showmanual | sort | uniq ) \
+ <( gzip --decompress --stdout -- /var/log/installer/initial-status.gz | sed --quiet 's/^Package: //p' | sort | uniq )
+)
+
list_packages_cygwin() (
set -o errexit -o nounset -o pipefail