From d6dc9f302490bc09d34fa38d4b35a95851668f6f Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 4 Apr 2009 16:25:45 +0200 Subject: [PATCH] debian: Add aptitude configuration file. --- .gitignore | 2 ++ debian/aptitude/config.real | 22 ++++++++++++++++++++++ setup.sh | 7 ++++++- 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100644 debian/aptitude/config.real diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..bef4c29 --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Ignore files created by setup.sh. +debian/aptitude/config diff --git a/debian/aptitude/config.real b/debian/aptitude/config.real new file mode 100644 index 0000000..dd8339e --- /dev/null +++ b/debian/aptitude/config.real @@ -0,0 +1,22 @@ +// Aptitude configuration file. + + +aptitude { + UI { + // Only display menubar when it's active. + Menubar-Autohide "true"; + // Don't display often used commands as help, I know them. + HelpBar "false"; + + // Use normal grouping with origin (~O) package as new top level. + // Thanks to hark in #debian on Freenode (2009-04-02 19:14) and + // http://noone.org/blog/English/Computer/Debian/Group%20by%20origin%20in%20aptitude.futile + // the site he pointed me to. + Default-Grouping "task,status,pattern(~O, !~O => other),section(subdirs,passthrough),section(topdir)"; + // Same as Default-Grouping. + Default-Preview-Grouping "pattern(~O),action"; + } + + // Don't display packages which only contain build dependencies. + Pkg-Display-Limit "!-build-depends"; +} diff --git a/setup.sh b/setup.sh index 4160cf7..e7d9ac6 100755 --- a/setup.sh +++ b/setup.sh @@ -5,9 +5,14 @@ . ../lib.sh -# Link setup. if [ `os` = darwin ]; then # Sets a custom PATH for GUI applications. mkdir -p ~/.MacOSX link darwin/environment.plist ~/.MacOSX/environment.plist fi +if [ `os` = debian ]; then + # Necessary as aptitude rewrites the config file on every start. + cp debian/aptitude/config.real debian/aptitude/config + + link debian/aptitude ~/.aptitude +fi -- 2.45.2