Answer the question
In order to leave comments, you need to log in
How to substitute a variable in an alias to pass a parameter?
In my .zshrc file I wanted to make an alias
alias a2='aria2c --select-file="$1"--input-file="$2"'
aria2c --select-file=2 --torrent-file=linux.torrent
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question