diff --git a/functions.sh b/functions.sh index c2c5bd8..0c54172 100755 --- a/functions.sh +++ b/functions.sh @@ -616,12 +616,22 @@ catbashrcfile () { loginfo "bash uses default" return 1 else - #cat $(cat /proc/$$/cmdline | xargs -0 echo|awk '{print $3}') cat $(getbashrcfile) fi EXIT } +vibashrcfile () { + ENTRY + if [ -z ${BASHRC+x} ] ; then + loginfo "bash uses default" + return 1 + else + vi $(getbashrcfile) + fi + EXIT +} + getvimrcfile () { ENTRY if [ -z ${VIMRC+x} ] ; then @@ -643,6 +653,15 @@ catvimrcfile () { 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 function title()