You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
56 lines
656 B
56 lines
656 B
#!/usr/bin/env bash
|
|
|
|
name=vdn-shell
|
|
|
|
synopsis() {
|
|
cat << EOF
|
|
Usage : $name [-h]
|
|
EOF
|
|
}
|
|
|
|
help() {
|
|
cat << EOF
|
|
|
|
$name exécute un shell evec les fonctions et les variables VDN.
|
|
|
|
`synopsis`
|
|
|
|
-h : affiche cette aide
|
|
|
|
EOF
|
|
}
|
|
|
|
usage() {
|
|
synopsis
|
|
exit 1
|
|
}
|
|
|
|
args() {
|
|
local opt
|
|
while getopts "h" opt; do
|
|
case $opt in
|
|
h) help; exit 0;;
|
|
?) usage;;
|
|
esac
|
|
done
|
|
}
|
|
|
|
# Programme principal
|
|
|
|
#xclock
|
|
args $@
|
|
|
|
VDN_PATH=$(readlink -f $(dirname $0)/..); . $VDN_PATH/bin/functions.sh
|
|
|
|
echo "Start..."
|
|
|
|
#export PS1='[VDN] \u@\h:\w\$ '
|
|
|
|
#$SLASH/usr/bin/env | $SLASH/bin/grep PATH
|
|
|
|
#export DISPLAY='127.0.0.1:10.0'
|
|
|
|
#xclock
|
|
|
|
$SLASH/usr/bin/env $SLASH/bin/bash
|