Received: from relay9-d.mail.gandi.net (relay9-d.mail.gandi.net [217.70.183.199]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id CCAF5781063 for <~alpine/users@lists.alpinelinux.org>; Sun, 27 Dec 2020 18:01:32 +0000 (UTC) X-Originating-IP: 188.150.16.29 Received: from mbp01.local (c188-150-16-29.bredband.comhem.se [188.150.16.29]) (Authenticated sender: info@gowave.xyz) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id 1A64FFF802; Sun, 27 Dec 2020 18:01:30 +0000 (UTC) Subject: Re: Is there a preferred way to change busybox aliases To: ~alpine/users@lists.alpinelinux.org References: <20201226210505.LdFcLG7Fs%dave@restall.net> Cc: David Restall From: "info@gowave.xyz" Message-ID: <05d88149-4be1-1ca4-c980-97d5bc12dec5@gowave.xyz> Date: Sun, 27 Dec 2020 19:01:22 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <20201226210505.LdFcLG7Fs%dave@restall.net> Content-Type: text/plain; charset=windows-1252 Content-Language: sv Content-Transfer-Encoding: 7bit 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. | > +----------------------------------------------------------------------------+ >