image

Access unlimited bootcamps and 650+ courses forever

60
%OFF
Article image
Alexandre Nascimento
Alexandre Nascimento13/10/2024 14:14
Share
WEX - End to End EngineeringRecommended for youWEX - End to End Engineering

Dicas: Manipulando o Caminho do Terminal.

    • Função para reduzir o caminho do terminal.

    function prompt { "PS > " }

    image

    • Função pra voltar o normal o caminho do terminal.

    function prompt { $PWD.Path + " > "}

    image

    • Função pra mostrar a ultima pasta.

    $path = $PWD.Path

    if (Test-Path $path -PathType Container) {

       $ultimaPasta = Split-Path $path -Leaf

      function prompt {"PS " + $ultimaPasta +" > " }

    }

    image

    Espero que Gostem das dicas.

    Se alguem tiver mais dicas de como manipular o caminho do terminal.

    Comente abaixo.

    Share
    Recommended for you
    NTT DATA - Java e IA para Iniciantes
    TONNIE - Java and AI in Europe
    Microsoft - Azure Administrator Certification (AZ-104)
    Comments (0)
    Recommended for youWEX - End to End Engineering