more bsd attempts
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user