Also use bash-completion in non-login shells
authorPeter Palfrader <peter@palfrader.org>
Mon, 17 Nov 2014 22:27:58 +0000 (23:27 +0100)
committerPeter Palfrader <peter@palfrader.org>
Mon, 17 Nov 2014 22:27:58 +0000 (23:27 +0100)
modules/debian-org/files/root-dotfiles/bashrc

index 74bf5a3..78a595f 100644 (file)
@@ -11,6 +11,10 @@ if [ "$PS1" ]; then
   alias ls='ls $LS_OPTIONS'
   alias ll='ls $LS_OPTIONS -l'
   alias l='ls $LS_OPTIONS -lA'
+
+  if [ -f /usr/share/bash-completion/bash_completion ]; then
+    . /usr/share/bash-completion/bash_completion
+  fi
 fi
 
 # vim: set ft=sh ts=2 sw=2 et ai si: