Add editor choice feature

This commit is contained in:
MatMoul 2015-11-01 18:41:01 +01:00
parent 5e1bad50b7
commit 1cb47e8c63

5
archfi
View file

@ -125,10 +125,7 @@ chooseeditor(){
"${options[@]}" \ "${options[@]}" \
3>&1 1>&2 2>&3) 3>&1 1>&2 2>&3)
if [ "$?" = "0" ]; then if [ "$?" = "0" ]; then
clear EDITOR=$sel
echo "export EDITOR=$sel"
export EDITOR=$sel
pressanykey
fi fi
} }