Setting up aliases in Powershell

Поділитися
Вставка
  • Опубліковано 19 лис 2024

КОМЕНТАРІ • 38

  • @crazy_vulcan
    @crazy_vulcan Рік тому +2

    Instructions are very easy to follow.. Thnaks

  • @ViridianBehr1
    @ViridianBehr1 2 роки тому +2

    Amazing and easy to follow explanation, job well done!

  • @AriusTigger
    @AriusTigger 3 роки тому +1

    thanks man great video really goes to the point and solve all the problems, I am just using FUNCTION to create all the alias it's like way quicker for me fewer errors

  • @ndnmdm9290
    @ndnmdm9290 2 роки тому +1

    answered all my questions at once. thanks

  • @AnuragPradhan101
    @AnuragPradhan101 Рік тому +1

    To the point! Thanks for making this video.

  • @shashankkr1008
    @shashankkr1008 2 роки тому

    Thank you so much. This was really helpful. I was able to create aliases for compiling and running c++ programs in powershell :D

  • @EchoVids2u
    @EchoVids2u 3 роки тому +4

    If anyone gets an error running script after saving $Profile like I did, run the following command to enable script execution:
    Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy Unrestricted
    Enter y and restart PowerShell

  • @agumurray
    @agumurray Рік тому +1

    It is possible to create an alias/function that executes more than one command? For example, I want to compile, execute, and then delete the executable of a C program only with a command. It's that possible? Thank you very much.

  • @sathishkumar2852
    @sathishkumar2852 2 роки тому +1

    you are a magician

  • @a_maxed_out_handle_of_30_chars
    @a_maxed_out_handle_of_30_chars 2 роки тому +2

    simple and to the point, thank you :)

  • @fete82
    @fete82 2 роки тому +2

    Thanks a lot! Very helpful

  • @a_maxed_out_handle_of_30_chars
    @a_maxed_out_handle_of_30_chars 2 роки тому +1

    Hello, for few days the custom function was working fine but when I rebooted my machine the custom function no longer works, currently I've the following in my profile file:
    function gm { cd "location" }
    but suddenly I started getting errors like:
    gm: you must specify an object for the Get-Member cmdlet
    at line1:char1
    CategoryInfo: CloseError:(:) [Get-Member], InvalidOperationException
    I tried changing the "function" to "Function" but still I'm getting the same error, please help

  • @DevOpsJourney
    @DevOpsJourney  4 роки тому +2

    What's your favorite powershell alias or function?

  • @tatan1994
    @tatan1994 3 роки тому +1

    Thank u for the video, it was really helpful

  • @adilnawaz5346
    @adilnawaz5346 Рік тому

    Thanks for the explaination

  • @itguy5192
    @itguy5192 4 місяці тому

    Great Video Sir!

  • @azenkwed
    @azenkwed 3 роки тому +1

    Very useful, thank you.

  • @potantirittisak8494
    @potantirittisak8494 5 місяців тому

    Works fine! Thanks!

  • @Bloome_BlueFolf
    @Bloome_BlueFolf Рік тому

    Made my day! Sadly executing scripts on my laptop from work is not allowed x_x

  • @xGasPer
    @xGasPer 10 місяців тому

    Thanks, you rock!

  • @w24lp05
    @w24lp05 3 роки тому +1

    Thx!

  • @ArmoFreekickerz
    @ArmoFreekickerz 4 місяці тому

    very helpful!

  • @tomasponce9409
    @tomasponce9409 Рік тому

    Thank You!

  • @MehtabAhmed-wc4qj
    @MehtabAhmed-wc4qj Рік тому

    In perfectly easy way

  • @lucca.9733
    @lucca.9733 4 роки тому +2

    Great video, really helpful.
    I have a question tho.
    Is it possible for me to create an alias that takes in a parameter?
    For example, i want to create a alias to start notepad++ in a given file
    I could do:
    Start notepad++
    How would I do it with an alias?

    • @DevOpsJourney
      @DevOpsJourney  4 роки тому

      Not with an alias, but with a function. This is a good guide:
      seankilleen.com/2020/04/how-to-create-a-powershell-alias-with-parameters/

    • @lucca.9733
      @lucca.9733 4 роки тому

      @@DevOpsJourney Thanks a lot!

  • @CIPI-pn5hk
    @CIPI-pn5hk 7 місяців тому

    thank you

  • @Hid4ri
    @Hid4ri 2 роки тому +2

    So profile is like the .bashrc file?

  • @elieobeid77
    @elieobeid77 3 роки тому +2

    you could open the profile from the terminal, using any code editor like this
    vim $profile

  • @happyinsna
    @happyinsna 3 місяці тому

    "gem"