projects
/
feisty_meow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e9a4f7c
)
nice, got script to wait for gvim
author
Chris Koeritz
<fred@gruntose.com>
Fri, 10 Nov 2017 17:27:40 +0000
(12:27 -0500)
committer
Chris Koeritz
<fred@gruntose.com>
Fri, 10 Nov 2017 17:27:40 +0000
(12:27 -0500)
scripts/customize/fred/fred_variables.sh
patch
|
blob
|
history
diff --git
a/scripts/customize/fred/fred_variables.sh
b/scripts/customize/fred/fred_variables.sh
index 02e107a58d79c4c83008e424c4bac61dbdb7518c..4c9c0d90d2c8bb63088454bf258653760d3a83a8 100644
(file)
--- a/
scripts/customize/fred/fred_variables.sh
+++ b/
scripts/customize/fred/fred_variables.sh
@@
-38,15
+38,21
@@
if [ -z "$USER_CUSTOMIZATIONS_LOADED" ]; then
# export BROWSER=/usr/bin/firefox
# editor and other mixed settings...
# export BROWSER=/usr/bin/firefox
# editor and other mixed settings...
- export EDITOR="$(which vim)"
+ export EDITOR="$(which gvim)"
+ if [ -z "$EDITOR" ]; then
+ export EDITOR="$(which vim)"
+ else
+ # special case for gvim; tell it not to fork or we can't wait for it.
+ EDITOR+=" --nofork"
+ fi
if [ -z "$EDITOR" ]; then
EDITOR="$(which vi)"
if [ -z "$EDITOR" ]; then
EDITOR="$(which vi)"
- if [ -z "$EDITOR" ]; then
- EDITOR="$(which emacs)"
- if [ -z "$EDITOR" ]; then
- echo "Cannot find a friendly editor."
- fi
- fi
+ fi
+ if [ -z "$EDITOR" ]; then
+ EDITOR="$(which emacs)"
+ fi
+ if [ -z "$EDITOR" ]; then
+ echo "Cannot find a friendly editor."
fi
export VISUAL="$EDITOR"
# the editors for revision control must wait while document is edited,
fi
export VISUAL="$EDITOR"
# the editors for revision control must wait while document is edited,