iankelling.org
/
git
/
distro-setup
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b304880
)
better aptitude search
author
Ian Kelling
<ian@iankelling.org>
Fri, 16 May 2014 00:53:03 +0000
(17:53 -0700)
committer
Ian Kelling
<ian@iankelling.org>
Thu, 4 May 2017 23:40:14 +0000
(16:40 -0700)
.bashrc
patch
|
blob
|
history
diff --git
a/.bashrc
b/.bashrc
index 76cf30b21570be7a473800900bf0304f05900e8a..c88a065bfed4fbcf0238a9dc16cbcb9a6fbc04e3 100644
(file)
--- a/
.bashrc
+++ b/
.bashrc
@@
-504,10
+504,16
@@
else
fi
}
pf() {
fi
}
pf() {
+ # scratch a very annoying itch.
+ # package description width as wide as the screen, and package name field small
+ # aptitude manual can't figure out how wide emacs terminal is,
+ # of course it doesn't consult the $COLUMNS variable...
+ # and in a normal terminal, it makes the package name field ridiculously big
+ # also, remove that useless dash before the description
if [[ $EUID == 0 ]]; then
if [[ $EUID == 0 ]]; then
- aptitude search "$@"
+ aptitude
-F "%c%a%M %p %$((COLUMNS - 30))d" -w $COLUMNS
search "$@"
else
else
- sudo aptitude search "$@"
+ sudo aptitude
-F "%c%a%M %p %$((COLUMNS - 30))d" -w $COLUMNS
search "$@"
fi
}
fi
fi
}
fi