
function absolute_path --description 'Converts a relative path into an absolute path'
    set --local target $argv[1]
    set --local curdir (pwd)

    builtin cd (dirname $target) > /dev/null; and echo (pwd)/(basename $target); and builtin cd $curdir
end


function absolute_path --description 'Converts a relative path into an absolute path'
    set --local target $argv[1]
    set --local curdir (pwd)

    builtin cd (dirname $target) > /dev/null; and echo (pwd)/(basename $target)
    builtin cd $curdir
end

Change to always change back to original directory
Change to always change back to original directory

lee-dohm/environment,lee-dohm/environment,lee-dohm/environment