Closed cmalven closed 6 years ago
Interesting! It looks like something is working though, since running cmal
does work.
What does which cmal
say?
That's certainly the fastest I've ever had somebody respond to a GitHub issue! Thanks!
→ which cmal
cmal () {
local command="$1"
if [ "$#" -gt 0 ]
then
shift
fi
case "$command" in
(shell) eval `cmal "sh-$command" "$@"` ;;
(*) command cmal "$command" "$@" ;;
esac
}
I bet it's not finding the sub on your $PATH
...which should be happening on cmal init
. For example, our sub 37
is installed in ~/.37
. On my $PATH
is:
/Users/qrush/.37/bin
...but 37 init
(and cmal init
) should handle that for you...what does your $PATH
look like? Does it have that? (I bet it does after you run your source
command)
Before source
:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
After source
:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/cmalven/.rvm/bin:/Users/cmalven/Dropbox/Config/sub/cmal/bin
Looks like #32
My sub is called
cmal
and is installed at~/Dropbox/Dropbox/Config/sub/cmal
My .zshenv contains:
Whenever I open a new terminal, and run
cmal
I getcmal:10: command not found: cmal
If I then run
source ~/.zshenv
followed bycmal
I correctly get the usage.But every time I open a new terminal window I'm back to square one. Any idea what could be going on?