add vi rcfiles as function
This commit is contained in:
parent
febd54d354
commit
77b2b8679c
1 changed files with 20 additions and 1 deletions
21
functions.sh
21
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()
|
||||
|
|
Loading…
Reference in a new issue