[python] Improved to be able to build without gdbm, readline or zlib
[opensde-package-nopast.git] / shells / bashcompletion / profile_d_bashcomp.sh
blob81541fe31b3b32708dea18dce96f2a696d2b70b6
1 # --- SDE-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # Filename: package/.../bashcompletion/profile_d_bashcomp.sh
5 # Copyright (C) 2004 - 2006 The T2 SDE Project
6 # Copyright (C) 1998 - 2004 Clifford Wolf
8 # More information can be found in the files COPYING and README.
10 # This program is free software; you can redistribute it and/or modify
11 # it under the terms of the GNU General Public License as published by
12 # the Free Software Foundation; version 2 of the License. A copy of the
13 # GNU General Public License can be found in the file COPYING.
14 # --- SDE-COPYRIGHT-NOTE-END ---
16 # off ..... just default tab completion
17 # intern .. smart tab completion with shell function (fast)
18 # extern .. smart tab completion with ext. progs (slow but cleaner)
20 completion_mode=off
22 if [ -n "$PS1" ]
23 then
24 case "$completion_mode" in
25 intern)
26 source /etc/bash_completion
28 extern)
29 shopt -s extglob progcomp
30 eval "$( bashcomp )"
32 esac
35 unset completion_mode