initial version of bs-ng-extensions

allows to install extra stuff for your bash
parent 9a2fbc2a
......@@ -18,7 +18,7 @@ export_result ()
echo -e "MODE=\"$MODE\"\
\nPREFIX=\"$PREFIX\"\
\nDATADIR=\"$PREFIX/share/bashstyle-ng/\"\
\nDATADIR_LIST=( code data rc/{,ascii,bin,dirinfo,functions,generator,internal,settings,styles,wizard} terminfo/{,b,m,n} vim/{,colors} )\
\nDATADIR_LIST=( code data rc/{,ascii,bin,dirinfo,extensions,functions,generator,internal,settings,styles,wizard} terminfo/{,b,m,n} vim/{,colors} )\
\nPROFILEDIR=\"/etc/profile.d/\"\
\nBINDIR=\"$PREFIX/bin\"\
\nLOCALEDIR=\"$PREFIX/share/locale/\"\
......
......@@ -11,6 +11,7 @@ DATA_FILES=( code/bsng.py:${DATADIR}/code
rc/settings/*:${DATADIR}/rc/settings
rc/styles/*:${DATADIR}/rc/styles
rc/wizard/*:${DATADIR}/rc/wizard
rc/extensions/*:${DATADIR}/rc/extensions
rc/generator/*:${DATADIR}/rc/generator
data/terminfo/b/*:${DATADIR}/terminfo/b
data/terminfo/m/*:${DATADIR}/terminfo/m
......
#!/bin/bash
MODULES=( fruitxterm )
for mod in ${MODULES[@]}; do
source $BSNG_RC_DIR/extensions/$mod
done
case $1 in
"" | *help )
;;
*add )
MODE=add
shift
;;
*remove )
MODE=remove
shift
;;
esac
if [[ $MODE == "add" ]]; then
case $1 in
fruitxterm )
install_fruitxterm
;;
esac
elif [[ $MODE == "remove" ]]; then
case $1 in
fruitxterm )
remove_fruitxterm
;;
esac
fi
#!/bin/bash
install_fruitxterm () {
wget "http://www.nanolx.org/bashstyle-extensions/fruitxterm"
sudo install -m755 fruitxterm $BSNG_BIN_DIR/
rm -f fruitxterm
xalias xterm fruitxterm
}
remove_fruitxterm () {
rm -f $BSNG_BIN_DIR/fruitxterm
xunalias xterm
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment