我最近做了一些更新(Mojave OS,Xcode更新)后,在Mac上卸载并重新安装了oh-my-zsh,现在我无法使用命令'stt'启动Sublime文本。我检查了.zshrc文件,并且sublime插件似乎在那里:
struct Rectangle
{
Rectangle(int width, int height):
width(width), height(height) {}
virtual ~Rectangle() {}
int width, height;
};
struct Square: Rectangle
{
Square(int size): Rectangle(size, size) {}
};
int main()
{
Square square(3);
Rectangle rect(1, 2);
Rectangle& ref_to_square = square;
Rectangle& ref_to_rect = rect;
// This is okay
// ref_to_square is a reference to an actual square
dynamic_cast<Square&>(ref_to_square);
// This will fail
// ref_to_rect is *not* a reference to an actual square
dynamic_cast<Square&>(ref_to_rect);
}
我还检查了我的路径变量:
➜ / cat ~/.zshrc
ZSH=$HOME/.oh-my-zsh
# You can change the theme with another one:
# https://github.com/robbyrussell/oh-my-zsh/wiki/themes
ZSH_THEME="robbyrussell"
# Useful plugins for Rails development with Sublime Text
plugins=(gitfast last-working-dir common-aliases sublime zsh-syntax-
highlighting history-substring-search)
关于“ stt”为什么不起作用的任何想法吗?