Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: echo "true" > ~/.zshrc from ~/.zshrc
- X-seq: zsh-users 21652
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: "Nikolay Aleksandrovich Pavlov (ZyX)" <kp-pav@xxxxxxxxx>
- Subject: Re: echo "true" > ~/.zshrc from ~/.zshrc
- Date: Sat, 11 Jun 2016 19:40:45 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=jUKm2hEjTDZ/rBD0cGWMPXiWpX4WCEbABlz0bE4XCQQ=; b=QAYhFX4jNtSWvhiHRi0RkJ0rnvq3ZHUt3LER6CI6zKkqlX7xbDn6iNXyCwifgA1FFF vVgYl6tkSpcr1Zdj9w8+rFZjZpvhftxSxoRMebsCovAKv2PWaZpc2WEtG/pY8Z/VNG9Y tIuBmmHisdtgYUDqIJoSQWyMbo8hL8G0puutA1O0Y9VfnjQKlCr3ItmwVMGZR5soJgzI XYNHZwNKjtb+HQjq6u8ulMdugchwCJpcw582w6XLaeNBcUzKnMmXmPt1DnRqeRp2QSDS 8kanafk6DYn5v5Xcs6lLoTNBltWS00CO3PGII2+P2391D9ee1etBl228Q4vZ579T3dVe +kFw==
- In-reply-to: <1553481465662840@web1m.yandex.ru>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVBsCerq5-qAG21De2fQq53MNFOOShjTYQV6eS5stBCGpQ@mail.gmail.com> <1553481465662840@web1m.yandex.ru>
On 11 June 2016 at 18:34, Nikolay Aleksandrovich Pavlov (ZyX)
<kp-pav@xxxxxxxxx> wrote:
> What do you mean by “legal”?
This seems like absurd thing to do, I was searching for some
reasonable constraints in this, thus the word "legal".
> If you do something like this you need to understand what is going on: see `man zshmisc`, section “REDIRECTION”. Specifically `>>` appends to zshrc, `>` *empties* zshrc and then appends: nearly equivalent is `rm ~/.zshrc; echo true > ~/.zshrc`.
Thanks
> I personally would not suggest to *ever* edit zshrc using `echo … >[>] ~/.zshrc`: this is a script and using `echo >>` to edit it will over time turn zshrc into an unorganized junkyard. If you need to do some edits, take text editor and edit ~/.zshrc, keeping it organized. This is especially needed if you have many aliases which may alter the subsequent code.
Thanks for the point about aliases
--
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author