in reply to Appending in a switch case statement
For background, I ran across this cute alias which I never use:
In the case you give, I use exported variables and cd. I've never felt the need to have my environment evolve so rapidly that I couldn't use an editor in a spare screen to edit my .bashrc. So I would just:realias='$EDITOR ~/.aliases; source ~/.aliases'
To make this more suited to your style, I'd blend this together into something like:$ export tmp=/tmp $ cd $tmp
Given that you perl, perhaps you can stand some dollar signs.function reexport { echo export "$*" >> $HOME/.exports; source $HOME/.exports; }
Be well,
rir
|
|---|