So I'm not very educated on Bash but I've been stumped on this. The switchto
function is to provide me an easy way to jump between projects on the command line.
source ~/.profile
export PATH=~/bin:$PATH
export PATH=~/.composer/vendor/bin:$PATH
alias composer="php /usr/local/bin/composer.phar"
switchto () (
cd "~/Projects/$1.com/wp-content/themes/$1"
)
Everything SEEMS right to me, but it keeps saying if I run for example switchto example
:
-bash: cd: ~/Projects/example.com/wp-content/themes/example: No such file or directory
I've verified again and again the the directory does indeed exist. I'm new to bash so I'm not sure if it's something simple I'm doing wrong?