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
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
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.
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
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?
Instructions are very easy to follow.. Thnaks
Amazing and easy to follow explanation, job well done!
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
answered all my questions at once. thanks
To the point! Thanks for making this video.
Thank you so much. This was really helpful. I was able to create aliases for compiling and running c++ programs in powershell :D
Nice!
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
tysm🙏
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.
you are a magician
simple and to the point, thank you :)
Glad it helped!
Thanks a lot! Very helpful
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
What's your favorite powershell alias or function?
Thank u for the video, it was really helpful
Glad it was helpful!
Thanks for the explaination
Great Video Sir!
Very useful, thank you.
Works fine! Thanks!
Made my day! Sadly executing scripts on my laptop from work is not allowed x_x
Thanks, you rock!
Thx!
very helpful!
Thank You!
In perfectly easy way
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?
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/
@@DevOpsJourney Thanks a lot!
thank you
So profile is like the .bashrc file?
Yeah exactly
you could open the profile from the terminal, using any code editor like this
vim $profile
Good tip, thank you.
"gem"