我在.bashrc
文件中创建了一个别名,如下所示
alias myproject = 'cd ~/Desktop/myproject'
在我重新启动终端时保存文件后,输入会将myproject
我带到项目目录,但是当我尝试将别名用作新gnome-terminal
选项卡的命令参数时,它会引发错误,
gnome-terminal --tab -e "myproject"
抛出错误
There was an error creating the child process for this terminal
Failed to execute child process "myproject" (No such file or directory)
这有什么问题?