]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
debian: Add aptitude configuration file.
authorSimon Ruderich <simon@ruderich.org>
Sat, 4 Apr 2009 14:25:45 +0000 (16:25 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 4 Apr 2009 14:25:45 +0000 (16:25 +0200)
.gitignore [new file with mode: 0644]
debian/aptitude/config.real [new file with mode: 0644]
setup.sh

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..bef4c29
--- /dev/null
@@ -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 (file)
index 0000000..dd8339e
--- /dev/null
@@ -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";
+}
index 4160cf7603cc386447bffc9b02568232a49d2618..e7d9ac67945457312da65ec8f1ddca5ef8b67f3f 100755 (executable)
--- 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