Peter Humphrey <[email protected]> wrote:
>
>> Dropping the aliases into ~/.zshrc is the easy option, that way to get
>> your aliases and a superior shell.
>
> That's what I've done so far.
If you have a complex bash configuration file which you want to keep,
source your .bashrc (or whatever you use) in compatibility mode
(the anonymous function will keep that mode local only for sourcing):
() {
emulate -L sh
setopt kshglob noshglob braceexpand nonomatch
. ~/.bashrc
}
Most setups should work without any issues in this compatibility
mode, the most notable exception being [[ $var ]] which must be
cast into the more compatible [[ -n $var ]].