[+] More editor support
This commit is contained in:
parent
7491081946
commit
e7938ea4c3
1 changed files with 7 additions and 1 deletions
8
neofetch
8
neofetch
|
@ -2294,9 +2294,15 @@ get_editor() {
|
|||
|
||||
# Obtain editor version
|
||||
case ${editor_name:=${editor_full_path##*/}} in
|
||||
nano|vim|micro)
|
||||
nano|vim|micro|emacs)
|
||||
editor_v=$("$editor_full_path" --version 2>&1)
|
||||
;;
|
||||
kak)
|
||||
editor_v=$("$editor_full_path" -version 2>&1)
|
||||
;;
|
||||
ne)
|
||||
editor_v=$("$editor_full_path" -h 2>&1)
|
||||
;;
|
||||
esac
|
||||
editor_v="${editor_v/$'\n'*}"
|
||||
editor_v="${editor_v/Version: }"
|
||||
|
|
Loading…
Reference in a new issue