X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.profile.d%2Fcompletion.bashrc;h=8ff324d9192081e0d3800e4c85524b970a316b46;hb=210a297d59649b72776feaae4b318945f7ad4074;hp=0f71b59751e248a715d55937c32eff79e2365b7a;hpb=35c3c2aa5aa6de197ae25495a6069f50151202ad;p=profile.git diff --git a/.profile.d/completion.bashrc b/.profile.d/completion.bashrc index 0f71b59..8ff324d 100644 --- a/.profile.d/completion.bashrc +++ b/.profile.d/completion.bashrc @@ -2,10 +2,10 @@ if ! builtin complete 2>&1 | grep 'not a shell builtin' >/dev/null; then # Helper! -export COMPLETION_DIR_SSH=~/.ssh/hosts -export COMPLETION_DIR_TELNET=~/.telnet/hosts -export COMPLETION_DIR_RDP=~/.rdp/hosts -export COMPLETION_DIR_PING="$COMPLETION_DIR_SSH $COMPLETION_DIR_TELNET $COMPLETION_DIR_RDP" +COMPLETION_DIR_SSH=${PROFILE_HOME:-~}/.ssh/hosts +COMPLETION_DIR_TELNET=${PROFILE_HOME:-~}/.telnet/hosts +COMPLETION_DIR_RDP=${PROFILE_HOME:-~}/.rdp/hosts +COMPLETION_DIR_PING="$COMPLETION_DIR_SSH $COMPLETION_DIR_TELNET $COMPLETION_DIR_RDP" function _generic_completion() { COMPLETION_DIR=${1+"$@"}