fixed quickinfo bash library reference pointer

This commit is contained in:
BuildTools 2022-08-27 00:20:56 -07:00
parent fe9769b113
commit 07f828ca92
2 changed files with 13 additions and 6 deletions

View file

@ -1,5 +1,6 @@
#!/bin/bash #!/bin/bash
# initial vars # initial vars
VERSION=0.1
rundir=${0%/*} rundir=${0%/*}
source ${rundir}/pyr0-bash-functions/functions source ${rundir}/pyr0-bash-functions/functions
scriptname=${0##*/} scriptname=${0##*/}
@ -11,15 +12,21 @@ globalinstalldir="$HOME/.local/share/pyr0-bash"
#-----------------------------------------------------------------# #-----------------------------------------------------------------#
VERSION=1.0 VERSION=1.0
bashrc_append="if [ -n \"$BASH_VERSION\" ]; then read -r -d bashrc_append << EOF
# Pyr0ball's Bash Functions library v$VERSION and greeting page setup
export pyr0-bash-functions="\$HOME/.local/share/pyr0-bash/functions"
"if [ -n \"\$BASH_VERSION\" ]; then
# include .bashrc if it exists # include .bashrc if it exists
if [ -d \"$HOME/.bashrc.d\" ]; then if [ -d \"\$HOME/.bashrc.d\" ]; then
for file in $HOME/.bashrc.d/*.bashrc ; do for file in \$HOME/.bashrc.d/*.bashrc ; do
source \"$file\" source \"\$file\"
done done
fi fi
fi" fi"
EOF
# List of dependency packaged to be istalled via apt
packages=( packages=(
git git
vim vim
@ -60,7 +67,7 @@ detectvim(){
install(){ install(){
mkdir -p ${globalinstalldir} mkdir -p ${globalinstalldir}
cp ${rundir}/functions ${globalinstalldir}/functions cp ${rundir}/pyr0-bash-functions/functions ${globalinstalldir}/functions
cp -r ${rundir}/lib/skel/* $HOME cp -r ${rundir}/lib/skel/* $HOME
cp -r ${rundir}/lib/skel/.* $HOME cp -r ${rundir}/lib/skel/.* $HOME
detectvim detectvim

View file

@ -11,7 +11,7 @@
scriptname=${0##*/} scriptname=${0##*/}
rundir=$(cd `dirname $0` && pwd) rundir=$(cd `dirname $0` && pwd)
source $rundir/functions source $pyr0-bash-functions
# Set to only run on interactive sessions (Disabled as cache # Set to only run on interactive sessions (Disabled as cache
# generation is non-interactive, so this would cause outdated # generation is non-interactive, so this would cause outdated