add vi rcfiles as function

This commit is contained in:
Jakobus Schürz 2023-01-11 16:54:46 +01:00
parent febd54d354
commit 77b2b8679c

View file

@ -616,12 +616,22 @@ catbashrcfile () {
loginfo "bash uses default" loginfo "bash uses default"
return 1 return 1
else else
#cat $(cat /proc/$$/cmdline | xargs -0 echo|awk '{print $3}')
cat $(getbashrcfile) cat $(getbashrcfile)
fi fi
EXIT EXIT
} }
vibashrcfile () {
ENTRY
if [ -z ${BASHRC+x} ] ; then
loginfo "bash uses default"
return 1
else
vi $(getbashrcfile)
fi
EXIT
}
getvimrcfile () { getvimrcfile () {
ENTRY ENTRY
if [ -z ${VIMRC+x} ] ; then if [ -z ${VIMRC+x} ] ; then
@ -643,6 +653,15 @@ catvimrcfile () {
EXIT EXIT
} }
vivimrcfile () {
ENTRY
if [ -z ${VIMRC+x} ] ; then
echo "vim uses default" >&2
else
vi $(getvimrcfile)
fi
EXIT
}
# Functions to set the correct title of the terminal # Functions to set the correct title of the terminal
function title() function title()