dot/bashrc: Pull in completion magic early.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 8 Jan 2015 14:05:17 +0000 (14:05 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 8 Jan 2015 14:05:17 +0000 (14:05 +0000)
Not sure really why it's delayed relative to the system configuration.

dot/bashrc

index 6337ca6..1ed4aa0 100644 (file)
@@ -13,6 +13,10 @@ __mdw_bashrc=done
 [ -z "$__mdw_profile" -a -r $HOME/.bash_profile ] && . $HOME/.bash_profile
 [ -r /etc/bashrc ] && . /etc/bashrc
 
+## Completion.
+[ -r /etc/bash_completion ] && . /etc/bash_completion
+[ -r $HOME/.bash_completion ] && . $HOME/.bash_completion
+
 ## Set the temporary directory again.  (If we've switched users, we'll want a
 ## different temporary directory.)
 [ "${TMPDIR+yes}" ] || eval `tmpdir -b`
@@ -117,10 +121,6 @@ alias e="$EDITOR"
 alias svn="svnwrap svn"
 alias @="ssh"
 
-## Completion.
-[ -r /etc/bash_completion ] && . /etc/bash_completion
-[ -r $HOME/.bash_completion ] && . $HOME/.bash_completion
-
 ###--------------------------------------------------------------------------
 ### Colour output.