I'm using ubuntu, and want to create a custom alias in my .bashrc file, which execute
$xdg-open my_file_name.pdf
when I type
$pdf my_file_name
I'm sure there's an easy way to do that.
Thanks a lot !
I'm using ubuntu, and want to create a custom alias in my .bashrc file, which execute
$xdg-open my_file_name.pdf
when I type
$pdf my_file_name
I'm sure there's an easy way to do that.
Thanks a lot !
Don't use an alias; create a function, because you can't pass arguments to an alias.
pdf () {
xdg-open "$1".pdf
}