I'm trying to set alias conky-lua ="conky -c ./.conky/conkyrc &"
so to start conky-lua. but when I source .zshrc
it says command not found.
A possible solution that I found on Stackoverflow is to set alias ls='ls -GpF'
didn't solve the problem
command linezsh
I'm trying to set alias conky-lua ="conky -c ./.conky/conkyrc &"
so to start conky-lua. but when I source .zshrc
it says command not found.
A possible solution that I found on Stackoverflow is to set alias ls='ls -GpF'
didn't solve the problem
Best Answer
The problem is the space around the
=
in the command. Look:this works as expected
But
This does not work.
zsh
see two words,b
and=ls
; it uses the pathname expansion on the second one, and executealias b /bin/ls
--- it exits silently with error code 1 because neitherb
or/bin/ls
are alias (alias
without=
checks if a name is an alias).This fails in a more strange way; the shell is trying to expand the full path of the command "ls -l" (with the embedded space in the command name) and so it is failing in looking for it.