Comment 1 for bug 1841892

Revision history for this message
John Neffenger (jgneff) wrote :

This issue prevents setting up a simple Bash alias that always uses LXD.

I would like to define the following alias:

~/.bash_aliases
---------------
alias snapcraft='snapcraft --use-lxd'

The workaround is to define a function with a different name that puts the option at the end of the command line, like this:

~/.bash_aliases
---------------
function sc() {
    snapcraft $@ --use-lxd
}