git://git.iain.cx/iain
/
profile.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43148d7
)
Use OS.bashrc variables.
author
Iain Patterson
<me@iain.cx>
Mon, 14 Jan 2008 17:32:59 +0000
(17:32 +0000)
committer
Iain Patterson
<me@iain.cx>
Mon, 14 Jan 2008 17:32:59 +0000
(17:32 +0000)
git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@90
6be0d1a5
-5cfe-0310-89b6-
964be062b18b
.profile.d/completion.bashrc
patch
|
blob
|
history
diff --git
a/.profile.d/completion.bashrc
b/.profile.d/completion.bashrc
index
cf77c15
..
90db89c
100644
(file)
--- a/
.profile.d/completion.bashrc
+++ b/
.profile.d/completion.bashrc
@@
-30,8
+30,7
@@
function _process() {
function _known_hosts() {
cur=${COMP_WORDS[COMP_CWORD]}
- HOSTS=$(sed 's/[ ].*//;s/,/\
-/' ~/.ssh/known_hosts)
+ HOSTS=$(sed 's/[ ].*//;s/,/\n/' ~/.ssh/known_hosts)
COMPREPLY=($(compgen -W "$HOSTS" -- "$cur"))
return 0
@@
-86,7
+85,7
@@
function _modprobe() {
COMPREPLY=()
cur=${COMP_WORDS[COMP_CWORD]}
- ver=$
(uname -r)
+ ver=$
KERNEL
MODULES="$(find /lib/modules/$ver -name \*.ko | sed -n 's@^.*/\([^/]*\).ko$@\1@p')"
COMPREPLY=($(compgen -W "$MODULES" -- "$cur"))