Gentoo Archives: gentoo-user

From: Peter Humphrey <peter@××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: Portable Gentoo (Pen Drive Linux)
Date: Sun, 30 Mar 2014 14:29:10
Message-Id: 8569503.bGesLnn9G1@wstn
In Reply to: [gentoo-user] Re: Portable Gentoo (Pen Drive Linux) by Martin Vaeth
1 On Sunday 30 Mar 2014 11:27:53 Martin Vaeth wrote:
2 > Peter Humphrey <peter@××××××××××××.uk> wrote:
3 > >> Dropping the aliases into ~/.zshrc is the easy option, that way to get
4 > >> your aliases and a superior shell.
5 > >
6 > > That's what I've done so far.
7 >
8 > If you have a complex bash configuration file which you want to keep,
9 > source your .bashrc (or whatever you use) in compatibility mode
10 > (the anonymous function will keep that mode local only for sourcing):
11 >
12 > () {
13 > emulate -L sh
14 > setopt kshglob noshglob braceexpand nonomatch
15 > . ~/.bashrc
16 > }
17 >
18 > Most setups should work without any issues in this compatibility
19 > mode, the most notable exception being [[ $var ]] which must be
20 > cast into the more compatible [[ -n $var ]].
21
22 Well, thank you Martin. I don't have anything complex; just some aliases
23 different from what's already in /root/.zshrc. Now that I've found where to put
24 mine I'm happy.
25
26 Apart, that is, from another problem I seem to have caused for myself. But
27 this is now OT re the original thread, so if I want to say more I'll start
28 another thread with it.
29
30 Thanks again.
31
32 --
33 Regards
34 Peter