0

I'd like to write a simple bash script to write in powershell

p args

instead of

python manage.py args

but i have no experience in bash. Can you help me?

2
  • 4
    This is a bit unclear as written. Are you using the Windows command prompt (cmd.exe) or PowerShell (powershell.exe or pwsh.exe)? Commented Apr 17, 2019 at 21:36
  • I'm using Powershell Commented Apr 18, 2019 at 8:18

1 Answer 1

3

PowerShell aliases can't play with parameters, they just alias one name to another. But you can write it as a function:

function p {
   & python manage.py $args
}
Sign up to request clarification or add additional context in comments.

1 Comment

that's exactly what I was looking for :D

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.