DEV Community

Discussion on: What are your preferred bash aliases?

Collapse
 
skipadu profile image
Sami Korpela

I'm curious how you set up the ? as an alias for the duckduckgo ?
I couldn't get it working when I tried and can't find that from your dotfiles either. I'm pretty new with these aliases.

Collapse
 
vonheikemen profile image
Heiker • Edited

I believe this is what you are looking for.

alias '?'='duckduckgo'

It's not on the dotfiles because I don't know if I'm going to keep it.

Thread Thread
 
skipadu profile image
Sami Korpela

Thanks! I did not have the single quotes on the ?, TIL :)

Thread Thread
 
vonheikemen profile image
Heiker

You're welcome.

This also seems to work.

alias -- ?='some-command'