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:
parent
67e98174a0
commit
3302ace64e
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue