1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Move around the order to make 'nano' more important.

Check for vim-tiny and vi.
Signed-off-by: Jordon Bedwell <jordon@envygeeks.com>
This commit is contained in:
Jordon Bedwell 2011-12-26 18:03:16 -06:00
parent 67e98174a0
commit 3302ace64e

View file

@ -206,10 +206,14 @@ class Pry
case true
when system('which editor > /dev/null 2>&1')
'editor'
when system("which vim > /dev/null 2>&1")
'vim'
when system("which nano > /dev/null 2>&1")
when system('which nano > /dev/null 2>&1')
'nano'
when system('which vim > /dev/null 2>&1')
'vim'
when system('which vi > /dev/null 2>&1')
'vi'
when system('which vim-tiny > /dev/null 2>&1')
'vim-tiny'
else
nil
end