diff --git a/abi_used_symbols b/abi_used_symbols --- a/abi_used_symbols +++ b/abi_used_symbols @@ -1,5 +1,4 @@ libc.so.6:__errno_location -libc.so.6:__stack_chk_fail libc.so.6:abort libc.so.6:fprintf libc.so.6:fputc @@ -27,7 +26,7 @@ libc.so.6:pthread_mutex_lock libc.so.6:pthread_mutex_unlock libc.so.6:pthread_sigmask -libc.so.6:realloc +libc.so.6:res_search libc.so.6:setenv libc.so.6:sigaction libc.so.6:sigaddset diff --git a/files/80-micro-is-default-EDITOR-and-VISUAL.fish b/files/80-micro-is-default-EDITOR-and-VISUAL.fish new file mode 100644 --- /dev/null +++ b/files/80-micro-is-default-EDITOR-and-VISUAL.fish @@ -0,0 +1,3 @@ +# Ensure there is a default editor should a user remove all other editors. +set -gx EDITOR /usr/bin/micro +set -gx VISUAL $EDITOR diff --git a/files/80-micro-is-default-EDITOR-and-VISUAL.sh b/files/80-micro-is-default-EDITOR-and-VISUAL.sh new file mode 100644 --- /dev/null +++ b/files/80-micro-is-default-EDITOR-and-VISUAL.sh @@ -0,0 +1,3 @@ +# Ensure there is a default editor should a user remove all other editors. +export EDITOR="/usr/bin/micro" +export VISUAL="${EDITOR}" diff --git a/package.yml b/package.yml --- a/package.yml +++ b/package.yml @@ -1,6 +1,6 @@ name : micro version : 2.0.11 -release : 26 +release : 27 source : - git|https://github.com/zyedidia/micro.git : v2.0.11 license : MIT @@ -20,3 +20,8 @@ install : | install -Dm00755 $workdir/micro $installdir/usr/bin/micro install -Dm00644 $workdir/assets/packaging/micro.1 $installdir/usr/share/man/man1/micro.1 + + # Set EDITOR and VISUAL defaults should nano be removed. + + install -Dm00644 $pkgfiles/80-micro-is-default-EDITOR-and-VISUAL.sh $installdir/usr/share/defaults/etc/profile.d/80-micro-is-default-EDITOR-and-VISUAL.sh + install -Dm00644 $pkgfiles/80-micro-is-default-EDITOR-and-VISUAL.fish $installdir/usr/share/defaults/etc/profile.d/80-micro-is-default-EDITOR-and-VISUAL.fish diff --git a/pspec_x86_64.xml b/pspec_x86_64.xml --- a/pspec_x86_64.xml +++ b/pspec_x86_64.xml @@ -21,12 +21,14 @@ editor /usr/bin/micro + /usr/share/defaults/etc/profile.d/80-micro-is-default-EDITOR-and-VISUAL.fish + /usr/share/defaults/etc/profile.d/80-micro-is-default-EDITOR-and-VISUAL.sh /usr/share/man/man1/micro.1 - - 2022-08-01 + + 2023-05-01 2.0.11 Packaging update Troy Harvey