Le 05/02/2019 à 19:49, Scott Kostyshak a écrit :
On Tue, Feb 05, 2019 at 12:35:55PM +0200, Dr Eberhard Lisse wrote:
Scott,

this is very helpful for my alias file on the Mac.

function lyxconfigure
{
        pushd ~/
        python -tt "/Applications/LyX.app/Contents/Resources/configure.py"
        popd
}

Nice. Thanks for sharing I actually never saw that trick for saving the
directory in a bash function (I've only used pushd and popd
interactively). I am used to saving "$(pwd)" to a variable and then "cd"
back to it. I like your trick instead.

One can also do
( cd dir ; ./command )

But concerning the alias, I am a bit surprised because it seems to create files at the root of the home directory.

JMarc

Reply via email to