set additional variables needed by some completions (man and gcc, notably)
This commit is contained in:
parent
f871fe4101
commit
174023db92
@ -40,9 +40,18 @@ if [ ! -d $installation_dir ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# many scripts requires this
|
# many scripts require this
|
||||||
shopt -s extglob
|
shopt -s extglob
|
||||||
|
|
||||||
|
# and some require this also
|
||||||
|
UNAME=$(uname -s)
|
||||||
|
UNAME=${UNAME/CYGWIN_*/Cygwin}
|
||||||
|
|
||||||
|
case $UNAME in
|
||||||
|
Linux|GNU|GNU/*) USERLAND=GNU ;;
|
||||||
|
*) USERLAND=$UNAME ;;
|
||||||
|
esac
|
||||||
|
|
||||||
for script in $completion_dir/*; do
|
for script in $completion_dir/*; do
|
||||||
# reset completion
|
# reset completion
|
||||||
complete -r
|
complete -r
|
||||||
|
Loading…
x
Reference in New Issue
Block a user