Gentoo Archives: gentoo-user

From: Martin Vaeth <martin@×××××.de>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Portable Gentoo (Pen Drive Linux)
Date: Sun, 30 Mar 2014 11:28:23
In Reply to: Re: [gentoo-user] Portable Gentoo (Pen Drive Linux) by Peter Humphrey
1 Peter Humphrey <peter@××××××××××××.uk> wrote:
2 >
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.
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):
12 () {
13 emulate -L sh
14 setopt kshglob noshglob braceexpand nonomatch
15 . ~/.bashrc
16 }
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 ]].


Subject Author
Re: [gentoo-user] Re: Portable Gentoo (Pen Drive Linux) Peter Humphrey <peter@××××××××××××.uk>