more bsd attempts

This commit is contained in:
Ville Rantanen
2017-06-09 21:32:34 +03:00
parent 04cef26db6
commit 932e75cac7
4 changed files with 20 additions and 5 deletions

View File

@@ -8,5 +8,8 @@ function helpexit() {
[[ -z "$1" ]] && helpexit
[[ "$1" = "-h" ]] && helpexit
LIB=$( dirname $( readlink -f $0 ) )/ansi.vim
case $OSTYPE in
darwin*) LIB=$( dirname $( realpath $0 ) )/ansi.vim ;;
*) LIB=$( dirname $( readlink -f $0 ) )/ansi.vim ;;
esac`
vim -S "$LIB" "$@"

View File

@@ -44,7 +44,10 @@ if [ ! -e "$1" ]; then
else
gpg --decrypt "$1" > "$unc"
fi
LIB=$( dirname $( readlink -f $0 ) )/crypted.vim
case $OSTYPE in
darwin*) LIB=$( dirname $( realpath $0 ) )/crypted.vim ;;
*) LIB=$( dirname $( readlink -f $0 ) )/crypted.vim ;;
esac
edit=`date +%s -r $unc`
if [ -s "$unc" ]; then
vim -i NONE -S "$LIB" -n -c "call Hide()" "$unc"

View File

@@ -9,5 +9,8 @@ function helpexit() {
[[ -z "$1" ]] && helpexit
[[ "$1" = "-h" ]] && helpexit
LIB=$( dirname $( realpath $0 ) )/markdown.vim
case $OSTYPE in
darwin*) LIB=$( dirname $( realpath $0 ) )/markdown.vim ;;
*) LIB=$( dirname $( readlink -f $0 ) )/markdown.vim ;;
esac
vim -S "$LIB" "$@"