Check-in Number:
|
4632 | |
Date: |
2004-Jul-10 10:17:12 (local)
2004-Jul-10 08:17:12 (UTC) |
User: | rse |
Branch: | |
Comment: |
import the initial version of the new-born OSSP due (Dynamic User Environment |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/due/.bash.local.rse -> 1.1
*** /dev/null Sat Nov 23 01:34:11 2024
--- - Sat Nov 23 01:34:34 2024
***************
*** 0 ****
--- 1,12 ----
+
+ case "${HOSTNAME:-`hostname`}" in
+ *.dev.de.cw.net | *.engelschall.com ) activate_openpkg /usr/opkg ;;
+ *.eu.cw.net | *.eu.cw.com | *.de.cw.net | *.de.cw.com ) activate_openpkg /cw ;;
+ esac
+
+ # the popular "practice gag" RSE likes since years ;-)
+ # (understanding requires at least basic German language knowledge)
+ if [ "$USER" = .rse ]; then
+ alias doch='root -l'
+ fi
+
|
|
ossp-pkg/due/.bash_history -> 1.1
*** /dev/null Sat Nov 23 01:34:11 2024
--- - Sat Nov 23 01:34:34 2024
***************
*** 0 ****
--- 1,205 ----
+ ll
+ lx
+ sync
+ vi .bashrc
+ ll
+ lx
+ rm .ICEauthority .Xauthority .abook.*
+ ll
+ lx
+ rm .[a-z]*
+ lx
+ rm -rf .gimp-1.2 .icewm .mozilla .qt
+ lx
+ rm -rf .kde
+ ll
+ lx
+ cd .ssh/
+ ll
+ cd ..
+ ll
+ sync
+ cp ~rse/ROOTSHELL.d/.[a-z]* .
+ ls -l
+ lx
+ vi .bash_login
+ vi .bashrc
+ lx
+ ll .bash.d/
+ sync
+ #[] login by user unknown
+ vi .bash.d/util.bashrc
+ vi .bashrc
+ #[] login by user unknown
+ set
+ cd .bash.d/
+ ll
+ ls -l
+ type ls
+ ll
+ lx
+ #[] login by user unknown
+ ls -l
+ vi
+ vi .bashrc
+ #[2004-06-29/22:08] login by user unknown
+ ls -l
+ vi .bashrc
+ #[2004-06-29/22:08] login by user unknown
+ set
+ . .bash.d/util.bashrc
+ set
+ vi .bashre
+ vi .bashrc
+ ll .bash.d/util.bashrc
+ vi .bashrc
+ #[2004-06-29/22:09] login by user unknown
+ set
+ exec bash
+ set
+ #[2004-06-29/22:09] login by user unknown
+ vi .bashrc
+ #[2004-06-29/22:10] login by user unknown
+ set +x
+ . /u/test/.bash.d/util.bashrc
+ set
+ vi .bashrc
+ ls -la
+ #[2004-06-29/22:10] login by user unknown
+ vi .bashrc
+ #[2004-06-29/22:11] login by user unknown
+ id
+ set
+ vi .bashrc
+ #[] login by user unknown
+ vi .bash.d/util.bashrc
+ vi .bash.d/platform.bashrc
+ ll
+ #[] login by user unknown
+ cd .bash.d/
+ ls -l
+ cd
+ echo $TERM
+ type cd
+ cd
+ cd /tmp/
+ cd -
+ vi ~/.bashrc
+ vi /u/rse/.bashrc
+ ls -l
+ -
+ +
+ cd /tmp/
+ -
+ +
+ ..
+ +
+ -
+ +
+ .
+ ..
+ ll
+ ls -l
+ type ll
+ type ls
+ vi .bashrc
+ ls -l
+ ls -l
+ lx
+ ll
+ ls
+ type ls
+ type llx
+ type lx
+ type lo
+ type ll
+ type ls
+ type cmd_ls
+ vi ~/.bash.d/ls.bashrc
+ ll
+ ls -l
+ ls
+ ls -l
+ lx
+ ls -l
+ ls -l ~/
+ ls -l /tmp/
+ ls /tmp/
+ lx /tmp/
+ ll /usr/bin/
+ lx /tmp/
+ echo $TERM_COLOR
+ vi .bash.d/term.bashrc
+ vi .bash.d/platform.bashrc
+ echo $OSNAME
+ ls -l
+ ls -l /usr/bin/
+ echo $OSNAME
+ echo $OSTYPE
+ vi /u/rse/.bashrc
+ ls -l
+ ls -la
+ lx
+ lx
+ lx .bash.d/
+ ll
+ sync
+ ll
+ cat bash.d/*.bashrc >x
+ ls -l
+ cat .bash.d/*.bashrc >x
+ ll x
+ ls -l
+ vi x
+ ls -l
+ sync
+ rm x
+ ls -l
+ lx
+ vi .bash.d/ls.bashrc
+ type ls
+ type cmd_ls
+ ls -l >x
+ vi x
+ ls -l
+ echo $OSNAME
+ ls -l
+ rm x
+ vi .bash.d/ls.bashrc
+ ls -l
+ vi .bash.d/ls.bashrc
+ uue list
+ uue load
+ uue load
+ uue load ls
+ uue -v load ls
+ uue list
+ uue load
+ uue load all
+ uue -v load all
+ ls -l
+ ls -l
+ echo ~/.due
+ ls -l
+ ls -l .due
+ ls -l .due
+ pwd
+ cd ..
+ vi .due/*
+ vi .duerc
+ env
+ env |grep DUE
+ set
+ set |grep DUE
+ lx
+ find .
+ sync
+ ll
+ lx
+ vi .vimrc
+ vi
+ ls -l
+ type vi
+ vi
+ type vi
+ echo $EDITOR
|
|
ossp-pkg/due/.bash_login -> 1.1
*** /dev/null Sat Nov 23 01:34:11 2024
--- - Sat Nov 23 01:34:34 2024
***************
*** 0 ****
--- 1,40 ----
+ ##
+ ## OSSP uue - Unified User Environment
+ ## Copyright (c) 1994-2004 Ralf S. Engelschall <rse@engelschall.com>
+ ## Copyright (c) 1994-2004 The OSSP Project <http://www.ossp.org/>
+ ##
+ ## This file is part of OSSP uue, a set of user configuration
+ ## files which can found at http://www.ossp.org/pkg/tool/uue/
+ ##
+ ## Permission to use, copy, modify, and distribute this software for
+ ## any purpose with or without fee is hereby granted, provided that
+ ## the above copyright notice and this permission notice appear in all
+ ## copies.
+ ##
+ ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ## SUCH DAMAGE.
+ ##
+ ## ~/.bash_login: GNU Bash login-shell configuration
+ ##
+
+ # path to bash environment init script
+ BASH_ENV=$HOME/.bashrc
+
+ # source the standard environment script
+ . $BASH_ENV
+
+ # welcome and goodbye
+ echo "$HOSTNAME: user $USER (${SSHUSER:-unknown}), login at `date`"
+ echo "#[`date '+%Y-%m-%d/%H:%M'`] login by user ${SSHUSER:-unknown}" >>$HISTFILE
+ trap 'echo "$HOSTNAME: user $USER (${SSHUSER:-unknown}), logout at `date`"' 0
+
|
|
ossp-pkg/due/.bashrc -> 1.1
*** /dev/null Sat Nov 23 01:34:11 2024
--- - Sat Nov 23 01:34:34 2024
***************
*** 0 ****
--- 1,34 ----
+ ##
+ ## OSSP due - Dynamic User Environment
+ ## Copyright (c) 1994-2004 Ralf S. Engelschall <rse@engelschall.com>
+ ## Copyright (c) 1994-2004 The OSSP Project <http://www.ossp.org/>
+ ##
+ ## This file is part of OSSP due, a dynamic user environment
+ ## which can found at http://www.ossp.org/pkg/tool/due/
+ ##
+ ## Permission to use, copy, modify, and distribute this software for
+ ## any purpose with or without fee is hereby granted, provided that
+ ## the above copyright notice and this permission notice appear in all
+ ## copies.
+ ##
+ ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ## SUCH DAMAGE.
+ ##
+ ## ~/.bashrc: GNU Bash sub-shell configuration
+ ##
+
+ source ~/.duerc
+ due -v load all -local
+
+ umask 022
+
|
|
ossp-pkg/due/.cshrc -> 1.1
*** /dev/null Sat Nov 23 01:34:11 2024
--- - Sat Nov 23 01:34:34 2024
***************
*** 0 ****
--- 1,38 ----
+ ##
+ ## OSSP uue - Unified User Environment
+ ## Copyright (c) 1994-2004 Ralf S. Engelschall <rse@engelschall.com>
+ ## Copyright (c) 1994-2004 The OSSP Project <http://www.ossp.org/>
+ ##
+ ## This file is part of OSSP uue, a set of user configuration
+ ## files which can found at http://www.ossp.org/pkg/tool/uue/
+ ##
+ ## Permission to use, copy, modify, and distribute this software for
+ ## any purpose with or without fee is hereby granted, provided that
+ ## the above copyright notice and this permission notice appear in all
+ ## copies.
+ ##
+ ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ## SUCH DAMAGE.
+ ##
+ ## ~/.cshrc -- C-Shell minimum GNU Bash wrapper
+ ##
+
+ # system C-shell to GNU Bash upgrade
+ # in case of interactive C-shell only to make sure that
+ # C-shell based scripts are not executed with GNU Bash
+ if ( $?prompt == 1 ) then
+ if ( $prompt != "" && -f /usr/opkg/bin/bash ) then
+ /usr/opkg/bin/bash -c : && exec /usr/opkg/bin/bash $argv[*]
+ endif
+ endif
+
|
|
ossp-pkg/due/.due/due.cd.sh -> 1.1
*** /dev/null Sat Nov 23 01:34:11 2024
--- - Sat Nov 23 01:34:34 2024
***************
*** 0 ****
--- 1,89 ----
+ ##
+ ## OSSP due - Dynamic User Environment
+ ## Copyright (c) 1994-2004 Ralf S. Engelschall <rse@engelschall.com>
+ ## Copyright (c) 1994-2004 The OSSP Project <http://www.ossp.org/>
+ ##
+ ## This file is part of OSSP due, a dynamic user environment
+ ## which can found at http://www.ossp.org/pkg/tool/due/
+ ##
+ ## Permission to use, copy, modify, and distribute this software for
+ ## any purpose with or without fee is hereby granted, provided that
+ ## the above copyright notice and this permission notice appear in all
+ ## copies.
+ ##
+ ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ## SUCH DAMAGE.
+ ##
+ ## cd: DUE module for enhanced change directory command
+ ##
+
+ # hook into cd command to adjust environment
+ function cd () {
+ # change current working directory
+ if [ ".$1" = .- ]; then
+ # go to previous working directory on forward directory stack
+ # and move this directory onto the reverse directory stack
+ if [ ${#DIRSTACK[*]} -gt 1 ]; then
+ DIRSTACKREV[${#DIRSTACKREV[*]}]="${DIRSTACK[0]}"
+ builtin popd >/dev/null
+ else
+ echo "cd: no more previous working directories on forward directory stack" 1>&2
+ return 1
+ fi
+ elif [ ".$1" = .+ ]; then
+ # go to previous working directory on reverse directory stack
+ # and move this directory onto the forward directory stack
+ if [ ${#DIRSTACKREV[*]} -gt 0 ]; then
+ local i=$((${#DIRSTACKREV[*]} - 1))
+ eval "builtin pushd ${DIRSTACKREV[$i]} >/dev/null"
+ unset DIRSTACKREV[$i]
+ else
+ echo "cd: no more previous working directories on reverse directory stack" 1>&2
+ return 1
+ fi
+ else
+ # go to next working directory
+ # and move this directory onto the forward directory stack
+ if [ $# -eq 0 ]; then
+ set -- $HOME
+ fi
+ pushd ${1+"$@"} >/dev/null
+ if [ "${#DIRSTACK[*]}" -ge 2 -a "${DIRSTACK[0]}" = "${DIRSTACK[1]}" ]; then
+ builtin popd >/dev/null
+ fi
+ DIRSTACKREV=()
+ fi
+
+ # adjust the command-line prompt with new $PWD (always)
+ PS1="\\u@\\h:$PWD\n\\\$ "
+
+ # adjust the X11 terminal window title with new $PWD (optional)
+ case "$TERM" in
+ xterm | xterm-* )
+ echo -n $'\e]0;'"$USER@$HOSTNAME:$PWD"$'\cg'
+ ;;
+ esac
+ }
+
+ # initially adjust the environment
+ cd $PWD
+ PS2="> "
+
+ # provide convenience shortcuts
+ alias -- +='cd +'
+ alias -- -='cd -'
+ alias -- ..='cd ..'
+
+ # auto-correct small errors in given directory names
+ shopt -s cdspell
+
|
|
ossp-pkg/due/.due/due.editor.sh -> 1.1
*** /dev/null Sat Nov 23 01:34:11 2024
--- - Sat Nov 23 01:34:34 2024
***************
*** 0 ****
--- 1,63 ----
+ ##
+ ## OSSP due - Dynamic User Environment
+ ## Copyright (c) 1994-2004 Ralf S. Engelschall <rse@engelschall.com>
+ ## Copyright (c) 1994-2004 The OSSP Project <http://www.ossp.org/>
+ ##
+ ## This file is part of OSSP due, a dynamic user environment
+ ## which can found at http://www.ossp.org/pkg/tool/due/
+ ##
+ ## Permission to use, copy, modify, and distribute this software for
+ ## any purpose with or without fee is hereby granted, provided that
+ ## the above copyright notice and this permission notice appear in all
+ ## copies.
+ ##
+ ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ## SUCH DAMAGE.
+ ##
+ ## editor: DUE module for smart editor/pager handling
+ ##
+
+ # requires "util" module
+ due load util
+
+ # determine best editor
+ export EDITOR
+ set -x
+ EDITOR=`find_tool vim vi`
+ if [ ".$EDITOR" = .vim ]; then
+ alias vi=vim
+ alias pi='vim "+set patchmode=.orig"'
+ fi
+ if [ ".$TERM" != ".$TERM_COLOR" ]; then
+ case "$EDITOR" in
+ /* ) ;;
+ * ) eval "function $EDITOR () { TERM=\$TERM_COLOR command $EDITOR \${1+\"\$@\" }" ;;
+ esac
+ fi
+ set +x
+
+ # determine best pager
+ export PAGER
+ PAGER=`find_tool less more`
+ if [ ".$PAGER" = .less ]; then
+ PAGER="$PAGER -E -r"
+ alias more="$PAGER"
+ export LESSOPEN
+ LESSOPEN=`find_tool lesspipe`
+ if [ -n "$LESSOPEN" ]; then
+ LESSOPEN="|$LESSOPEN %s"
+ else
+ unset LESSOPEN
+ fi
+ fi
+
|
|
ossp-pkg/due/.due/due.ff.sh -> 1.1
*** /dev/null Sat Nov 23 01:34:11 2024
--- - Sat Nov 23 01:34:34 2024
***************
*** 0 ****
--- 1,40 ----
+ ##
+ ## OSSP due - Dynamic User Environment
+ ## Copyright (c) 1994-2004 Ralf S. Engelschall <rse@engelschall.com>
+ ## Copyright (c) 1994-2004 The OSSP Project <http://www.ossp.org/>
+ ##
+ ## This file is part of OSSP due, a dynamic user environment
+ ## which can found at http://www.ossp.org/pkg/tool/due/
+ ##
+ ## Permission to use, copy, modify, and distribute this software for
+ ## any purpose with or without fee is hereby granted, provided that
+ ## the above copyright notice and this permission notice appear in all
+ ## copies.
+ ##
+ ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ## SUCH DAMAGE.
+ ##
+ ## ff: DUE module for finding files
+ ##
+
+ function ff () {
+ if [ $? -eq 0 ]; then
+ echo "Usage: ff <file-glob> <directory>" 1>&2
+ return 1
+ fi
+ local file=$1; shift
+ local dir=$2; shift
+ find "$dir" -name "*${file}*" -type f -print
+ return 0
+ }
+
|
|
ossp-pkg/due/.due/due.local.sh -> 1.1
*** /dev/null Sat Nov 23 01:34:11 2024
--- - Sat Nov 23 01:34:34 2024
***************
*** 0 ****
--- 1,41 ----
+ ##
+ ## OSSP due - Dynamic User Environment
+ ## Copyright (c) 1994-2004 Ralf S. Engelschall <rse@engelschall.com>
+ ## Copyright (c) 1994-2004 The OSSP Project <http://www.ossp.org/>
+ ##
+ ## This file is part of OSSP due, a dynamic user environment
+ ## which can found at http://www.ossp.org/pkg/tool/due/
+ ##
+ ## Permission to use, copy, modify, and distribute this software for
+ ## any purpose with or without fee is hereby granted, provided that
+ ## the above copyright notice and this permission notice appear in all
+ ## copies.
+ ##
+ ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ## SUCH DAMAGE.
+ ##
+ ## local: DUE module for loading local override configurations
+ ##
+
+ # optionally allow shared local modifications
+ if [ -f ~/.bashrc.local.$USER ]; then
+ . ~/.bashrc.local.$USER
+ elif [ -f ~/.bashrc.local ]; then
+ . ~/.bashrc.local
+ fi
+
+ # optionally allow user-specific local modifications
+ if [ -n "$SSHUSER" -a -f ~/.bashrc.local.$SSHUSER ]; then
+ . ~/.bashrc.local.$SSHUSER
+ fi
+
|
|
ossp-pkg/due/.due/due.ls.sh -> 1.1
*** /dev/null Sat Nov 23 01:34:11 2024
--- - Sat Nov 23 01:34:34 2024
***************
*** 0 ****
--- 1,61 ----
+ ##
+ ## OSSP due - Dynamic User Environment
+ ## Copyright (c) 1994-2004 Ralf S. Engelschall <rse@engelschall.com>
+ ## Copyright (c) 1994-2004 The OSSP Project <http://www.ossp.org/>
+ ##
+ ## This file is part of OSSP due, a dynamic user environment
+ ## which can found at http://www.ossp.org/pkg/tool/due/
+ ##
+ ## Permission to use, copy, modify, and distribute this software for
+ ## any purpose with or without fee is hereby granted, provided that
+ ## the above copyright notice and this permission notice appear in all
+ ## copies.
+ ##
+ ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ## SUCH DAMAGE.
+ ##
+ ## ls: DUE module for enhanced list directory command
+ ##
+
+ # ls command which enables color sequences and automatic paging
+ # if the output is connected to the interactive terminal.
+ function ls () {
+ local prolog=""
+ local cmd="command ls"
+ local opt=""
+ local arg="\${1+\"\$@\"}"
+ local epilog=""
+ if [ -t /dev/stdout ]; then
+ if [ ".$TERM" != ".$TERM_COLOR" ]; then
+ prolog="TERM=\$TERM_COLOR $prolog"
+ fi
+ if [ ".$OSNAME" = .FreeBSD ]; then
+ prolog="$prolog CLICOLOR=1 CLICOLOR_FORCE=1"
+ opt="-C"
+ epilog="| /usr/bin/less -E -r"
+ elif [ ".$OSNAME" = .Linux ]; then
+ opt="--color=always"
+ epilog="| /usr/bin/less -X -E -r -s | grep -v '^.\\[m'"
+ elif [ ".$OSNAME" = .SunOS -a -f /bin/less ]; then
+ epilog="| /bin/less -E -r"
+ elif [ ".$PAGER" = .less ]; then
+ epilog="| less -E -r"
+ fi
+ fi
+ eval "$prolog $cmd $opt $arg $epilog"
+ }
+
+ # some convenience commands
+ alias ll="ls -l"
+ alias lx="ls -l -a -o"
+
|
|
ossp-pkg/due/.due/due.platform.sh -> 1.1
*** /dev/null Sat Nov 23 01:34:11 2024
--- - Sat Nov 23 01:34:34 2024
***************
*** 0 ****
--- 1,66 ----
+ ##
+ ## OSSP due - Dynamic User Environment
+ ## Copyright (c) 1994-2004 Ralf S. Engelschall <rse@engelschall.com>
+ ## Copyright (c) 1994-2004 The OSSP Project <http://www.ossp.org/>
+ ##
+ ## This file is part of OSSP due, a dynamic user environment
+ ## which can found at http://www.ossp.org/pkg/tool/due/
+ ##
+ ## Permission to use, copy, modify, and distribute this software for
+ ## any purpose with or without fee is hereby granted, provided that
+ ## the above copyright notice and this permission notice appear in all
+ ## copies.
+ ##
+ ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ## SUCH DAMAGE.
+ ##
+ ## platform: DUE module for platform specifics
+ ##
+
+ # requires "util" module
+ due load util
+
+ # determine name of operating system
+ OSNAME=`echo "$OSTYPE" | sed -e 's;^\([a-zA-Z][a-zA-Z]*\).*$;\1;'`
+ OSVEND=unknown
+
+ # adjust platform specific base run-time environment
+ case $OSTYPE in
+ FreeBSD* )
+ PATH="/bin:/usr/bin:/sbin:/usr/sbin"
+ LD_LIBRARY_PATH="/usr/lib:/usr/lib/compat"
+ MANPATH="/usr/share/man"
+ ;;
+ Linux* )
+ PATH="/bin:/usr/bin:/sbin:/usr/sbin"
+ LD_LIBRARY_PATH="/lib:/usr/lib"
+ MANPATH="/usr/man:/usr/share/man"
+ if [ -f /etc/fedora-release ]; then OSVEND=Fedora
+ elif [ -f /etc/redhat-release ]; then OSVEND=RedHat
+ elif [ -f /etc/debian_version ]; then OSVEND=Debian
+ elif [ -f /etc/SuSE-release ]; then OSVEND=SuSE
+ fi
+ ;;
+ SunOS* )
+ PATH="/usr/bin:/usr/ccs/bin:/usr/sbin:/sbin"
+ LD_LIBRARY_PATH="/usr/lib:/usr/ccs/lib"
+ MANPATH="/usr/share/man"
+ ;;
+ * )
+ PATH=`find_path : /bin /usr/bin /sbin /usr/sbin /usr/ccs/bin`
+ LD_LIBRARY_PATH=`find_path : /lib /usr/lib /usr/ccs/lib`
+ MANPATH=`find_path : /usr/man /usr/share/man`
+ ;;
+ esac
+ activate_generic /usr/X11R6 /usr/X11 /usr/openwin
+
|
|
ossp-pkg/due/.due/due.recue.sh -> 1.1
*** /dev/null Sat Nov 23 01:34:11 2024
--- - Sat Nov 23 01:34:34 2024
***************
*** 0 ****
--- 1,84 ----
+ ##
+ ## OSSP due - Dynamic User Environment
+ ## Copyright (c) 1994-2004 Ralf S. Engelschall <rse@engelschall.com>
+ ## Copyright (c) 1994-2004 The OSSP Project <http://www.ossp.org/>
+ ##
+ ## This file is part of OSSP due, a dynamic user environment
+ ## which can found at http://www.ossp.org/pkg/tool/due/
+ ##
+ ## Permission to use, copy, modify, and distribute this software for
+ ## any purpose with or without fee is hereby granted, provided that
+ ## the above copyright notice and this permission notice appear in all
+ ## copies.
+ ##
+ ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ## SUCH DAMAGE.
+ ##
+ ## editor: DUE module for rescue command
+ ##
+
+ # system rescue facility
+ function rescue () {
+ local cmd="$1"
+ shift
+ case "$cmd" in
+ on )
+ rescue_time="${1:-10}"
+ echo "++ scheduling rescue through system reboot in ${rescue_time} minutes"
+ case $OSTYPE in
+ FreeBSD* )
+ echo "/sbin/shutdown -r now" | at -q r +${rescue_time} minutes >/dev/null
+ ;;
+ Linux* )
+ echo "/sbin/shutdown -r now" | at -q r +${rescue_time} minutes >/dev/null
+ ;;
+ SunOS* )
+ echo "/usr/sbin/shutdown -i6 -g0 -y" | at -q r now "+ ${rescue_time}minutes" >/dev/null
+ ;;
+ esac
+ ;;
+ off )
+ echo "++ cancelling rescue through system reboot"
+ case $OSTYPE in
+ FreeBSD* )
+ for id in `at -q r -l | grep -v "^Date" | awk '{ print $5; }'`; do
+ at -q r -d $id >/dev/null
+ done
+ ;;
+ Linux* )
+ for id in `at -q r -l | awk '{ print $1; }'`; do
+ at -q r -d $id >/dev/null
+ done
+ ;;
+ SunOS* )
+ for id in `at -q r -l | awk '{ print $1; }'`; do
+ at -r $id >/dev/null
+ done
+ ;;
+ esac
+ unset rescue_time
+ ;;
+ renew|new )
+ echo "++ rescheduling rescue through system reboot in ${rescue_time} minutes"
+ x=${rescue_time}
+ rescue off >/dev/null || true
+ rescue on ${x} >/dev/null
+ ;;
+ * )
+ echo "Usage: rescue on [<minutes>]" 2>&1
+ echo "Usage: rescue [re]new" 2>&1
+ echo "Usage: rescue off" 2>&1
+ ;;
+ esac
+ }
+
|
|
ossp-pkg/due/.due/due.root.sh -> 1.1
*** /dev/null Sat Nov 23 01:34:11 2024
--- - Sat Nov 23 01:34:34 2024
***************
*** 0 ****
--- 1,150 ----
+ ##
+ ## OSSP due - Dynamic User Environment
+ ## Copyright (c) 1994-2004 Ralf S. Engelschall <rse@engelschall.com>
+ ## Copyright (c) 1994-2004 The OSSP Project <http://www.ossp.org/>
+ ##
+ ## This file is part of OSSP due, a dynamic user environment
+ ## which can found at http://www.ossp.org/pkg/tool/due/
+ ##
+ ## Permission to use, copy, modify, and distribute this software for
+ ## any purpose with or without fee is hereby granted, provided that
+ ## the above copyright notice and this permission notice appear in all
+ ## copies.
+ ##
+ ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ## SUCH DAMAGE.
+ ##
+ ## root: DUE module for root command execution
+ ##
+
+ # generate shell script for re-evaluation of command arguments
+ # input: foo 'bar baz' quux (3 args)
+ # output: "foo \"bar baz\" quux" (1 arg)
+ function _arg2sh () {
+ local opt_e=no
+ local opt_t=no
+ local opt
+ OPTIND=1
+ while getopts et opt; do
+ case ${opt} in
+ e ) opt_e=yes ;;
+ t ) opt_t=yes ;;
+ esac
+ done
+ shift $(($OPTIND - 1))
+ local cmd=""
+ local arg
+ for arg in "$@"; do
+ # NOTICE: there are three(!) escaping layers here:
+ # - escape layer 1: backticks (`..xx..`)
+ # - escape layer 2: quotes ('..xx..')
+ # - escape layer 3: sed regex (s;..xx..;..xx..;)
+ local orig=$arg
+ if [ ${opt_e} = yes ]; then
+ arg=`echo "@${arg}" | sed -e 's;^@;;' -e 's;\\\\;\\\\\\\\;g' -e 's;\\(["]\\);\\\\\\1;g'`
+ elif [ ${opt_t} = yes ]; then
+ arg=`echo "@${arg}" | sed -e 's;^@;;' -e 's;\\\\;\\\\\\\\;g' -e 's;\\(["!\$\`]\\);\\\\\\1;g'`
+ fi
+ local quote=no
+ if [ "${arg}" != "${orig}" ]; then
+ quote=yes
+ else
+ quote=`echo "@${arg}" | sed -e 's;^@.*[ ].*\$;yes;' -e 's;^@.*;no;'`
+ fi
+ if [ ${quote} = yes ]; then
+ arg=`echo "@${arg}" |\
+ sed -e 's;^@\([A-Z][A-Z0-9_]*\)=\(.*\)$;\1="\2";' \
+ -e 's;^@\(.*\)$;"\1";'`
+ fi
+ cmd="${cmd}${cmd:+ }${arg}"
+ done
+ printf "%s" "${cmd}" # intentionally not echo(1)
+ }
+
+ # generate shell script for re-evaluation of environment variables
+ # input: PATH HOME (2 args)
+ # output: "PATH=\"...\"; HOME=\"...\"" (1 arg)
+ function _env2sh () {
+ local cmd=""
+ local arg
+ for arg in "$@"; do
+ local val
+ eval "val=\"\$${arg}\""
+ # NOTICE: there are three(!) escaping layers here, too.
+ val=`echo "@${val}" | sed -e 's;^@;;' -e 's;\\\\;\\\\\\\\;g' -e 's;\\(["!\$\`]\\);\\\\\\1;g'`
+ cmd="${cmd}${cmd:+; }${arg}=\"${val}\""
+ done
+ printf "%s" "${cmd}" # intentionally not echo(1)
+ }
+
+ # smart dealing with temporary root privileges
+ function root () {
+ # default operation
+ if [ $# -eq 0 ]; then
+ set -- -i
+ fi
+
+ # parse command line options
+ local opt_i=no # interactive shell
+ local opt_l=no # last command-line
+ local opt_e=no # remote expansion mode
+ local opt
+ OPTIND=1
+ while getopts ileh opt; do
+ case ${opt} in
+ i ) opt_i=yes ;;
+ l ) opt_l=yes ;;
+ e ) opt_e=yes ;;
+ h ) echo "root:Usage: root [-h] [-l] [-e] command"; return 0 ;;
+ ? ) echo "root:Error: invalid command line"; return 1 ;;
+ esac
+ done
+ shift $(($OPTIND - 1))
+
+ # determine action(s)
+ local prolog=":"
+ local epilog=":"
+ local command
+ if [ ${opt_i} = yes ]; then
+ # enter interactive session with root privileges
+ local xtermcontrol=`find_tool xtermcontrol xtermcolors`
+ if [ -n "${xtermcontrol}" ]; then
+ prolog="${xtermcontrol} --cursor='#cc3333'"
+ epilog="${xtermcontrol} --cursor='#000000'"
+ command="PS1=\"\\[\\e[31;1m\\]\\u\\[\\e[0m\\]@\\h:\\w\\n\\\\\\$ \"; export PS1"
+ fi
+ command="${command}${command:+; }exec ${SHELL} --norc --noprofile"
+ elif [ ${opt_l} = yes -a ${opt_e} = yes ]; then
+ eval "set -- $(builtin history 2 | sed -n -e '1p' | cut -c8-)"
+ command=$(_arg2sh -e -- "$@")
+ elif [ ${opt_l} = yes ]; then
+ # execute last command-line with root privileges
+ command=$(builtin history 2 | sed -n -e '1p' | cut -c8-)
+ elif [ ${opt_e} = yes ]; then
+ # execute given command-line with root privileges (expansion mode)
+ command=$(_arg2sh -e -- "$@")
+ else
+ # execute given command-line with root privileges (transparent mode)
+ command=$(_arg2sh -t -- "$@")
+ fi
+
+ # generate action command
+ local cmd=$(_env2sh ${ROOT_ENV:-PATH MANPATH INFOPATH LD_LIBRARY_PATH TERM HOME EDITOR PAGER LOGNAME USER})
+ cmd="${cmd}; cd ${PWD} && ${command}"
+ cmd=$(_arg2sh -t -- "${cmd}")
+ eval ${prolog}; ssh -t -q -x root@${HOSTNAME} ${SHELL} -c "${cmd}"; rv=$?; eval ${epilog}
+
+ # exit with return value of remote command
+ return $rv
+ }
+
|
|
ossp-pkg/due/.due/due.term.sh -> 1.1
*** /dev/null Sat Nov 23 01:34:11 2024
--- - Sat Nov 23 01:34:34 2024
***************
*** 0 ****
--- 1,75 ----
+ ##
+ ## OSSP due - Dynamic User Environment
+ ## Copyright (c) 1994-2004 Ralf S. Engelschall <rse@engelschall.com>
+ ## Copyright (c) 1994-2004 The OSSP Project <http://www.ossp.org/>
+ ##
+ ## This file is part of OSSP due, a dynamic user environment
+ ## which can found at http://www.ossp.org/pkg/tool/due/
+ ##
+ ## Permission to use, copy, modify, and distribute this software for
+ ## any purpose with or without fee is hereby granted, provided that
+ ## the above copyright notice and this permission notice appear in all
+ ## copies.
+ ##
+ ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ## SUCH DAMAGE.
+ ##
+ ## term: DUE module for terminal configuration
+ ##
+
+ # require DUE "platform" module
+ due load platform
+
+ # determine terminal type
+ if [ -z TERM ]; then
+ TERM=vt100
+ fi
+ TERM_COLOR=$TERM
+ if [ ".$TERM" = .xterm ]; then
+ if [ ".$OSNAME" = .FreeBSD -o ".$OSNAME" = .Linux ]; then
+ TERM_COLOR=xterm-color
+ fi
+ fi
+
+ # adjust terminal settings
+ if expr $- : ".*i.*" >/dev/null; then
+ mesg y
+ fi
+ if [ ".$TERM" = .xterm ]; then
+ stty -istrip cs8
+ fi
+ shopt -s checkwinsize
+
+ # provide command for terminal reset
+ alias sane='(xset r rate 400 40; stty sane; eval `resize`) >/dev/null 2>&1 || true'
+
+ # adjust shell history settings
+ shopt -s histappend
+ shopt -s cmdhist
+ HISTSIZE=9000
+ HISTFILESIZE=9000
+ HISTIGNORE="&"
+
+ # provide command for rotating a little propeller for
+ # keeping a remote connection busy and this way alive
+ function zz () {
+ echo -n "Sleeping... "
+ while [ 1 ]; do
+ for i in "|" "/" "-" "\\"; do
+ echo -n "$i"
+ sleep 1
+ echo -ne "\b"
+ done
+ done
+ }
+
|
|
ossp-pkg/due/.due/due.util.sh -> 1.1
*** /dev/null Sat Nov 23 01:34:11 2024
--- - Sat Nov 23 01:34:34 2024
***************
*** 0 ****
--- 1,158 ----
+ ##
+ ## OSSP due - Dynamic User Environment
+ ## Copyright (c) 1994-2004 Ralf S. Engelschall <rse@engelschall.com>
+ ## Copyright (c) 1994-2004 The OSSP Project <http://www.ossp.org/>
+ ##
+ ## This file is part of OSSP due, a dynamic user environment
+ ## which can found at http://www.ossp.org/pkg/tool/due/
+ ##
+ ## Permission to use, copy, modify, and distribute this software for
+ ## any purpose with or without fee is hereby granted, provided that
+ ## the above copyright notice and this permission notice appear in all
+ ## copies.
+ ##
+ ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ## SUCH DAMAGE.
+ ##
+ ## util: DUE module for shared utility functions
+ ##
+
+ function lookup () {
+ # options defaults
+ local opt_d=no # search for directory only
+ local opt_f=no # search for file only
+ local opt_a=no # return all occurrences instead of just first one
+ local opt_b=no # return basename of files only
+ local opt_s=" " # separator string when returning all occurrences
+ local opt_p=${PATH} # directory path to search
+ local opt_r=no # recursive search inside paths
+
+ # parse command-line options
+ local opt
+ OPTIND=1
+ while getopts dfas:p:r opt; do
+ case ${opt} in
+ d ) opt_d=yes ;;
+ f ) opt_f=yes ;;
+ a ) opt_a=yes ;;
+ s ) opt_s=$OPTARG ;;
+ p ) opt_p=$OPTARG ;;
+ r ) opt_r=yes ;;
+ esac
+ done
+ shift $(($OPTIND - 1))
+
+ # for all filenames...
+ local result=""
+ local file
+ for file in "$@"; do
+ # ...iterate over all directories in the path...
+ local topdir
+ for topdir in ${opt_p//:/ }; do
+ if [ ! -d ${topdir} ]; then
+ continue
+ fi
+ if [ ${opt_r} = yes ]; then
+ topdir=`find $topdir -type d -print`
+ fi
+ # ...and optionally all its sub-directories...
+ local dir
+ local ifso="${IFS}"; IFS="\n"
+ for dir in ${topdir}; do
+ IFS="${ifso}"
+ local flag="-e"
+ if [ ${opt_d} = yes ]; then
+ flag="-d"
+ elif [ ${opt_f} = yes ]; then
+ flag="-f"
+ fi
+ if [ ${flag} ${dir}/${file} ]; then
+ if [ ${opt_b} = yes ]; then
+ result="${result}${result:+${opt_s}}${file}"
+ else
+ result="${result}${result:+${opt_s}}${dir}/${file}"
+ fi
+ if [ ${opt_a} = no ]; then
+ break
+ fi
+ fi
+ done
+ IFS="${ifso}"
+ if [ -n ${result} ]; then
+ break
+ fi
+ done
+ if [ -n ${result} ]; then
+ break
+ fi
+ done
+ return $result
+ }
+
+ # assemble existing directories
+ function find_path () {
+ local sep="$1"
+ shift
+ local path=""
+ local dir
+ for dir in "$@"; do
+ if [ -d $dir ]; then
+ path="${path}${path:+$sep}${dir}"
+ fi
+ done
+ echo "$path"
+ }
+
+ # lookup preferred tool in $PATH
+ function find_tool () {
+ local tool=""
+ local name
+ for name in "$@"; do
+ tool=`type -p $name`
+ if [ -n $tool ]; then
+ break
+ fi
+ done
+ echo "$tool"
+ }
+
+ # locate and activate OpenPKG software instances
+ function activate_openpkg () {
+ local prefix
+ for prefix in "$@"; do
+ if [ -d $prefix/etc/openpkg ]; then
+ PATH="$PATH:$prefix/bin:$prefix/local/bin:$prefix/sbin:$prefix/local/sbin"
+ LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$prefix/lib"
+ MANPATH="$MANPATH:$prefix/man:$prefix/local/man"
+ fi
+ done
+ }
+
+ # locate and activate generic software instance
+ function activate_generic () {
+ local prefix
+ for prefix in "$@"; do
+ if [ -d $prefix ]; then
+ if [ -d $prefix/bin ]; then
+ PATH="$PATH:$prefix/bin"
+ fi
+ if [ -d $prefix/lib ]; then
+ LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$prefix/lib"
+ fi
+ if [ -d $prefix/man ]; then
+ MANPATH="$MANPATH:$prefix/man"
+ fi
+ fi
+ done
+ }
+
|
|
ossp-pkg/due/.duerc -> 1.1
*** /dev/null Sat Nov 23 01:34:11 2024
--- - Sat Nov 23 01:34:34 2024
***************
*** 0 ****
--- 1,159 ----
+ ##
+ ## OSSP due - Dynamic User Environment
+ ## Copyright (c) 1994-2004 Ralf S. Engelschall <rse@engelschall.com>
+ ## Copyright (c) 1994-2004 The OSSP Project <http://www.ossp.org/>
+ ##
+ ## This file is part of OSSP due, a dynamic user environment
+ ## which can found at http://www.ossp.org/pkg/tool/due/
+ ##
+ ## Permission to use, copy, modify, and distribute this software for
+ ## any purpose with or without fee is hereby granted, provided that
+ ## the above copyright notice and this permission notice appear in all
+ ## copies.
+ ##
+ ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ## SUCH DAMAGE.
+ ##
+ ## ~/.duerc: OSSP due run-command script
+ ##
+
+ # global DUE variables holding names of available
+ # and actually loaded modules
+ DUE_AVAILABLE=""
+ DUE_LOADED=""
+
+ # the DUE frontend command
+ function due () {
+ # parse command line
+ local opt_h=no
+ local opt_v=${DUE_VERBOSE:-no}
+ local opt_p=""
+ local opt
+ OPTIND=1
+ while getopts hvp: opt; do
+ case ${opt} in
+ h ) opt_h=yes ;;
+ v ) opt_v=yes ;;
+ p ) opt_p=$OPTARG ;;
+ esac
+ done
+ shift $((${OPTIND} - 1))
+ if [ ".${opt_h}" = .h ]; then
+ echo "Usage: due [-h] [-v] [-p <module-path>] load [+|-]<module> ..."
+ return 0
+ fi
+
+ # determine path to DUE modules
+ local mod_path_system=""
+ local mod_path="${DUE_PATH:-"$HOME/.due:@"}"
+ if [ ".${opt_p}" != . ]; then
+ mod_path="${opt_p}"
+ fi
+ mod_path=`echo "${mod_path}" |\
+ sed -e "s;@;${mod_path_system};" |\
+ sed -e 's/::/:/g' -e 's/^://' -e 's/:$//'`
+
+ # determine available modules
+ if [ -z ${DUE_AVAILABLE} ]; then
+ local mod_dir
+ for mod_dir in ${mod_path//:/ }; do
+ [ ".${mod_dir}" = . ] && continue
+ [ -d ${mod_dir} ] || continue
+ local mod_name
+ for mod_name in . `cd ${mod_dir} && echo due.*.sh`; do
+ [ ".${mod_name}" = ".." -o ".${mod_name}" = ".*" ] && continue
+ eval "DUE_AVAILABLE=\"${DUE_AVAILABLE}${DUE_AVAILABLE:+,}${mod_name}\""
+ done
+ done
+ fi
+
+ # dispatch into commands
+ cmd="$1"
+ shift
+ case "${cmd}" in
+ load )
+ # by default all modules are disabled
+ local mod_name
+ for mod_name in ${DUE_AVAILABLE//,/ }; do
+ eval "local mod_enable_${mod_name}=no"
+ done
+
+ # determine whether to enable or disable requested module(s)
+ for mod_name in "$@"; do
+ local val=yes
+ case "${mod_name}" in
+ +* ) val=yes; mod_name=${mod_name:1} ;;
+ -* ) val=no; mod_name=${mod_name:1} ;;
+ esac
+ if [ ".${mod_name}" = .all ]; then
+ for mod_name in ${DUE_AVAILABLE//,/ }; do
+ eval "mod_enable_${mod_name}=${val}"
+ done
+ else
+ local exists
+ eval "exists=\${mod_enable_${mod_name}}"
+ if [ ".${exists}" = . ]; then
+ echo "due:ERROR: invalid module \"${mod_name}\"" 1>&2
+ return 1
+ fi
+ eval "mod_enable_${mod_name}=${val}"
+ fi
+ done
+
+ # load enabled (and still not loaded) modules
+ for mod_name in ${DUE_AVAILABLE//,/ }; do
+ eval "val=\${mod_enable_${mod_name}}"
+ if [ ".${val}" = .yes ]; then
+ local loadit=yes
+ for loaded in ${DUE_LOADED//,/ }; do
+ if [ ".${loaded}" = ".${mod_name}" ]; then
+ # module already loaded
+ loadit=no
+ break
+ fi
+ done
+ if [ ".${loadit}" = .yes ]; then
+ local mod_file=""
+ local mod_dir
+ for mod_dir in ${mod_path//:/ }; do
+ [ ".${mod_dir}" = . ] && continue
+ if [ -f "${mod_dir}/${mod_name}" ]; then
+ mod_file="${mod_dir}/${mod_name}"
+ break
+ fi
+ done
+ if [ ".${mod_file}" = . ]; then
+ # should not happen here again
+ echo "due:ERROR: invalid module \"${mod_name}\"" 1>&2
+ return 1
+ fi
+ local verbose=${DUE_VERBOSE}
+ DUE_VERBOSE=${opt_v}
+ source ${mod_file}
+ DUE_VERBOSE=${verbose}
+ DUE_LOADED="${DUE_LOADED}${DUE_LOADED:+,}${mod_name}"
+ if [ ".${opt_v}" = .yes ]; then
+ echo "due: loaded shell module \"${mod_name}\"" 1>&2
+ fi
+ fi
+ fi
+ done
+ ;;
+ * )
+ echo "due:ERROR: invalid command \"${cmd}\"" 1>&2
+ return 1
+ ;;
+ esac
+ return 0
+ }
+
|
|
ossp-pkg/due/.inputrc -> 1.1
*** /dev/null Sat Nov 23 01:34:11 2024
--- - Sat Nov 23 01:34:34 2024
***************
*** 0 ****
--- 1,38 ----
+ ##
+ ## OSSP uue - Unified User Environment
+ ## Copyright (c) 1994-2004 Ralf S. Engelschall <rse@engelschall.com>
+ ## Copyright (c) 1994-2004 The OSSP Project <http://www.ossp.org/>
+ ##
+ ## This file is part of OSSP uue, a set of user configuration
+ ## files which can found at http://www.ossp.org/pkg/tool/uue/
+ ##
+ ## Permission to use, copy, modify, and distribute this software for
+ ## any purpose with or without fee is hereby granted, provided that
+ ## the above copyright notice and this permission notice appear in all
+ ## copies.
+ ##
+ ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ## SUCH DAMAGE.
+ ##
+ ## ~/.inputrc: GNU Readline configuration (used by GNU Bash)
+ ##
+
+ # enable ISO-Latin-1 "umlaut" characters
+ set meta-flag on
+ set convert-meta off
+ set output-meta on
+
+ # enable immediate TAB expansion
+ set show-all-if-ambiguous on
+ set overwrite-mode on
+
|
|
ossp-pkg/due/.profile -> 1.1
*** /dev/null Sat Nov 23 01:34:11 2024
--- - Sat Nov 23 01:34:34 2024
***************
*** 0 ****
--- 1,34 ----
+ ##
+ ## OSSP uue - Unified User Environment
+ ## Copyright (c) 1994-2004 Ralf S. Engelschall <rse@engelschall.com>
+ ## Copyright (c) 1994-2004 The OSSP Project <http://www.ossp.org/>
+ ##
+ ## This file is part of OSSP uue, a set of user configuration
+ ## files which can found at http://www.ossp.org/pkg/tool/uue/
+ ##
+ ## Permission to use, copy, modify, and distribute this software for
+ ## any purpose with or without fee is hereby granted, provided that
+ ## the above copyright notice and this permission notice appear in all
+ ## copies.
+ ##
+ ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ## SUCH DAMAGE.
+ ##
+ ## ~/.profile -- Bourne-Shell minimum GNU Bash wrapper
+ ##
+
+ # system Bourne-shell to GNU Bash upgrade
+ if [ -f /cw/bin/bash -a ".$BASH" = . ]; then
+ /cw/bin/bash -c : && exec /cw/bin/bash ${1+"$@"}
+ fi
+
|
|
ossp-pkg/due/.screenrc -> 1.1
*** /dev/null Sat Nov 23 01:34:11 2024
--- - Sat Nov 23 01:34:34 2024
***************
*** 0 ****
--- 1,39 ----
+ ##
+ ## OSSP uue - Unified User Environment
+ ## Copyright (c) 1994-2004 Ralf S. Engelschall <rse@engelschall.com>
+ ## Copyright (c) 1994-2004 The OSSP Project <http://www.ossp.org/>
+ ##
+ ## This file is part of OSSP uue, a set of user configuration
+ ## files which can found at http://www.ossp.org/pkg/tool/uue/
+ ##
+ ## Permission to use, copy, modify, and distribute this software for
+ ## any purpose with or without fee is hereby granted, provided that
+ ## the above copyright notice and this permission notice appear in all
+ ## copies.
+ ##
+ ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ ## SUCH DAMAGE.
+ ##
+ ## ~/.screenrc: GNU Screen configuration
+ ##
+
+ # use the default escape sequence
+ escape ^Aa
+
+ # do not show any startup messages
+ startup_message off
+
+ # use an audio bell to avoid flickering screens
+ # on repeated errors in Vim or Mutt
+ vbell off
+
|
|
ossp-pkg/due/.viminfo -> 1.1
*** /dev/null Sat Nov 23 01:34:11 2024
--- - Sat Nov 23 01:34:34 2024
***************
*** 0 ****
--- 1,35 ----
+ # This viminfo file was generated by Vim 6.3.
+ # You may edit it if you're careful!
+
+
+ # hlsearch on (H) or off (h):
+ ~H
+ # Command Line History (newest to oldest):
+ :q!
+ :q
+ :help
+ :x
+
+ # Search String History (newest to oldest):
+
+ # Expression History (newest to oldest):
+
+ # Input Line History (newest to oldest):
+
+ # Input Line History (newest to oldest):
+
+ # Registers:
+ ""- CHAR 0
+ d
+
+ # File marks:
+
+ # Jumplist (newest first):
+
+ # History of marks within files (newest to oldest):
+
+ > /usr/opkg/share/vim/doc/help.txt
+ " 35 2
+
+ > /usr/opkg/share/vim/doc/quickref.txt
+ " 8 9
|
|
ossp-pkg/due/.vimrc -> 1.1
*** /dev/null Sat Nov 23 01:34:11 2024
--- - Sat Nov 23 01:34:34 2024
***************
*** 0 ****
--- 1,169 ----
+ "##
+ "## OSSP uue - Unified User Environment
+ "## Copyright (c) 1994-2004 Ralf S. Engelschall <rse@engelschall.com>
+ "## Copyright (c) 1994-2004 The OSSP Project <http://www.ossp.org/>
+ "##
+ "## This file is part of OSSP uue, a set of user configuration
+ "## files which can found at http://www.ossp.org/pkg/tool/uue/
+ "##
+ "## Permission to use, copy, modify, and distribute this software for
+ "## any purpose with or without fee is hereby granted, provided that
+ "## the above copyright notice and this permission notice appear in all
+ "## copies.
+ "##
+ "## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ "## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ "## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ "## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ "## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ "## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ "## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ "## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ "## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ "## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ "## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ "## SUCH DAMAGE.
+ "##
+ "## ~/.vimrc: Vi-IMproved (VIM) configuration
+ "## vi: set tabstop=4 shiftwidth=4:
+ "##
+
+ version 6.0
+
+ " Remove ALL autocommands.
+ :autocmd!
+
+ " Always insert tabs as spaces (only exception are Makefiles)
+ " but preserve already existing tabs in order to not destroy existing content.
+ set expandtab
+ autocmd BufRead Makefile,Makefile.* set noexpandtab
+
+ " Display 8-bit characters
+ set graphic
+
+ " Avoid "Thanks for Flying Vim" titles in xterm and
+ " set the X11 icon to the name of Vim instead of xterm.
+ set notitle
+ set icon
+
+ " Check first 6 lines for Vi set commands (e.g. 'vi:set tabstop=4 shiftwidth=4').
+ set modeline
+ set modelines=6
+
+ " No automatic write of files, i.e. I KNOW WHAT I DO! At least most of the time ;-)
+ set noautowrite
+
+ " Always use my login shell (GNU Bash) for sub-shells.
+ set shell=$SHELL
+
+ " Create .bak files only while saving. If current dir is not
+ " allowed to create the file, save it under the backup dir.
+ set nobackup
+ set writebackup
+ set backupdir=$HOME/tmp
+
+ " Write swap files (*.swp) to this dir if not allowed at the current one.
+ set directory=$HOME/tmp
+
+ " Don't beep for every silly command and write shorter messages.
+ set noerrorbells
+ set terse
+
+ " Read/write a .viminfo file, but don't store more than 50 lines of registers.
+ set viminfo='20,\"50
+
+ " Show command and modes.
+ set showcmd
+ set showmode
+
+ " Display a status line plus a single-line command line
+ " and always tell me where I'm inside the file.
+ set laststatus=2
+ set cmdheight=1
+ set ruler
+
+ " Do incremental search with smart case sensitivity behavior.
+ set incsearch
+ set smartcase
+
+ " Allow virtual editing in Visual block mode.
+ set virtualedit=block
+
+ " Always expand windows to the maximum height, but expand only to the
+ " minimum width of 80 characters per line. Also, create new windows
+ " below current one.
+ set winheight=9999
+ set winwidth=80
+ set splitbelow
+
+ " Do not wrap lines (neither implicitly on display nor explicitly
+ " during editing), except for real text files. Also, shift a minimum
+ " of 4 chars left/right if we go over the right/left border.
+ set textwidth=9999
+ autocmd BufRead *.txt,*.tex,*.xml set textwidth=78
+ set nowrap
+ set shiftwidth=4
+
+ " Always indent new lines the same as the last one.
+ " Also, use a C-programmer-style smart tab editing.
+ set autoindent
+ set smartindent
+ set tabstop=4
+
+ " Make Y analogous to C and D for orthogonality
+ map Y y$
+
+ " Allow us to backspace back over lines in insert mode and also
+ " to go back over the starting point.
+ set backspace=2
+
+ " Command line uses more Bash style editing
+ cnoremap <C-A> <Home>
+ cnoremap <C-F> <Right>
+ cnoremap <C-B> <Left>
+ cnoremap <ESC>b <S-Left>
+ cnoremap <ESC>f <S-Right>
+ cnoremap <ESC><C-H> <C-W>
+
+ " Vim and other tools inside an xterm think Delete key is <backspace>
+ " and Backspace key is <delete> but we cannot just swap them. In
+ " Vim this swapping doesn't work and via xmodmap other X11 applications
+ " would be affected, too. So we the following: We map Delete to CTRL-D
+ " for the XTerms via xrdb and then remap the keys here in Vim.
+ imap <Esc>lxi
+ imap <Esc>OD
+
+ " Make qualified cursor keys the same as non-qualfied cursor keys
+ " in order to avoid typing problems in case I'm lazy releasing the
+ " qualifying keys (shift, control, alt).
+ map <Esc>[1;2A <Esc>OA
+ map <Esc>[1;2B <Esc>OB
+ map <Esc>[1;2C <Esc>OC
+ map <Esc>[1;2D <Esc>OD
+ map <Esc>[1;3A <Esc>OA
+ map <Esc>[1;3B <Esc>OB
+ map <Esc>[1;3C <Esc>OC
+ map <Esc>[1;3D <Esc>OD
+ map <Esc>[1;5A <Esc>OA
+ map <Esc>[1;5B <Esc>OB
+ map <Esc>[1;5C <Esc>OC
+ map <Esc>[1;5D <Esc>OD
+ imap <Esc>[1;2A <Esc>OA
+ imap <Esc>[1;2B <Esc>OB
+ imap <Esc>[1;2C <Esc>OC
+ imap <Esc>[1;2D <Esc>OD
+ imap <Esc>[1;3A <Esc>OA
+ imap <Esc>[1;3B <Esc>OB
+ imap <Esc>[1;3C <Esc>OC
+ imap <Esc>[1;3D <Esc>OD
+ imap <Esc>[1;5A <Esc>OA
+ imap <Esc>[1;5B <Esc>OB
+ imap <Esc>[1;5C <Esc>OC
+ imap <Esc>[1;5D <Esc>OD
+
+ " Provide CTRL-G as an alias for CTRL-] (the jump forward key) because
+ " on a german keyboard CTRL-] is horrible to type, it is a free
+ " keystroke, it is located closer to CTRL-T (the jump back key) and
+ " "G" can be more easily remembered by thinking "go to".
+ map <C-G> <C-]>
+
|
|
ossp-pkg/due/README -> 1.1
*** /dev/null Sat Nov 23 01:34:11 2024
--- - Sat Nov 23 01:34:34 2024
***************
*** 0 ****
--- 1,48 ----
+
+ _ ___ ____ ____ ____ _ _
+ |_|_ _ / _ \/ ___/ ___|| _ \ _ _ _ _(_) __| |
+ _|_||_| | | | \___ \___ \| |_) | | | | | | | | |/ _` |
+ |_||_|_| | |_| |___) |__) | __/ | |_| | |_| | | (_| |
+ |_|_|_| \___/|____/____/|_| \__,_|\__,_|_|\__,_|
+
+ OSSP uue - Unified User Environment
+ Version 0.9.0 (06-Jul-2004)
+
+ ABSTRACT
+
+ OSSP uue is ...
+
+ COPYRIGHT AND LICENSE
+
+ Copyright (c) 1994-2004 Ralf S. Engelschall <rse@engelschall.com>
+ Copyright (c) 1994-2004 The OSSP Project <http://www.ossp.org/>
+
+ This file is part of OSSP uue, a set of user configuration
+ files which can found at http://www.ossp.org/pkg/tool/uue/
+
+ Permission to use, copy, modify, and distribute this software for
+ any purpose with or without fee is hereby granted, provided that
+ the above copyright notice and this permission notice appear in all
+ copies.
+
+ THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
+ HOME AND DOCUMENTATION
+
+ The documentation and latest release can be found on
+
+ o http://www.ossp.org/pkg/tool/uue/
+ o ftp://ftp.ossp.org/pkg/tool/uue/
+
+
|
|