~alpine/users

1

Is there a preferred way to change busybox aliases

David Restall <dave@restall.net>
Details
Message ID
<20201226210505.LdFcLG7Fs%dave@restall.net>
DKIM signature
missing
Download raw message
Hi,

New to Alpine Linux but am enjoying the experience :-)

My preferred editor is vim.  I installed it using apk and can run it
quite happily.  I would really like vim to be the system editor so when
I type 'vi filename' it uses vim instead of busybox vi :

alpine:/etc# which vi
/usr/bin/vi
alpine:/etc# ls -al /usr/bin/vi
lrwxrwxrwx 1 root root 12 Dec 25 21:46 /usr/bin/vi -> /bin/busybox

I could just do :

alpine:/etc# cd /usr/bin/; rm vi; ln -s vim vi 

but that seems a bit brutal, on other distros, there is an 'alternatives'
package for this sort of issue, is there anything similar in Alpine ?

Regards,




D
lists/alpine/users/2020-12-26.tx                       alpineusers
+----------------------------------------------------------------------------+
| Dave Restall, Computer Anorak, Geek, Cyclist, Radio Amateur G4FCU, Bodger  |
| Mob +44 (0) 7973 831245      Skype: dave.restall             Radio: G4FCU  |
| email : dave@restall.net  - Anti-SocialMediaist -  Web : Not Ready Yet :-( |
+- QOTD ---------------------------------------------------------------------+
| There is no sadder sight than a young pessimist.                           |
+----------------------------------------------------------------------------+
info@gowave.xyz <info@gowave.xyz>
Details
Message ID
<05d88149-4be1-1ca4-c980-97d5bc12dec5@gowave.xyz>
In-Reply-To
<20201226210505.LdFcLG7Fs%dave@restall.net> (view parent)
DKIM signature
missing
Download raw message
Is it possible to create an alias in your preferred shell?

/gowave

Den 2020-12-26 kl. 22:05, skrev David Restall:
> Hi,
> 
> New to Alpine Linux but am enjoying the experience :-)
> 
> My preferred editor is vim.  I installed it using apk and can run it
> quite happily.  I would really like vim to be the system editor so when
> I type 'vi filename' it uses vim instead of busybox vi :
> 
> alpine:/etc# which vi
> /usr/bin/vi
> alpine:/etc# ls -al /usr/bin/vi
> lrwxrwxrwx 1 root root 12 Dec 25 21:46 /usr/bin/vi -> /bin/busybox
> 
> I could just do :
> 
> alpine:/etc# cd /usr/bin/; rm vi; ln -s vim vi 
> 
> but that seems a bit brutal, on other distros, there is an 'alternatives'
> package for this sort of issue, is there anything similar in Alpine ?
> 
> Regards,
> 
> 
> 
> 
> D
> lists/alpine/users/2020-12-26.tx                       alpineusers
> +----------------------------------------------------------------------------+
> | Dave Restall, Computer Anorak, Geek, Cyclist, Radio Amateur G4FCU, Bodger  |
> | Mob +44 (0) 7973 831245      Skype: dave.restall             Radio: G4FCU  |
> | email : dave@restall.net  - Anti-SocialMediaist -  Web : Not Ready Yet :-( |
> +- QOTD ---------------------------------------------------------------------+
> | There is no sadder sight than a young pessimist.                           |
> +----------------------------------------------------------------------------+
> 
Reply to thread Export thread (mbox)