小编Spe*_*han的帖子

如何从终端打开谷歌浏览器?

我正在尝试创建一个别名,将google chrome打开到localhost.在这种情况下,端口80.

我也非常希望能够进入任何git目录并让它在浏览器中打开该特定项目,但我不确定这是否可行.

  • 如何从终端打开谷歌浏览器?
  • 我可以用什么别名在浏览器中打开当前的git项目?

更多细节:

  1. 我的localhost设置为端口80.
  2. 我将我的git存储库存储在〜/ Sites /中,这意味着如果我想在浏览器中查看任何项目,可以在这里找到:http:// localhost/FILENAME

谢谢

git bash terminal alias google-chrome

39
推荐指数
6
解决办法
5万
查看次数

bash_completion 导致终端中“找不到命令”

我使用 bash_completion 来点击选项卡并查看分支名称和目录。这一切都有效。我将其放入我的 bash_profile 中以便连接 bash_completion:

if [ -f `brew --prefix`/etc/bash_completion ]; then
    . `brew --prefix`/etc/bash_completion
fi
Run Code Online (Sandbox Code Playgroud)

当我现在启动终端时,我得到:

-bash: @MyNameHERE: command not found
Run Code Online (Sandbox Code Playgroud)

如果我从 bash_profile 中删除第一个片段,这个问题就会消失,但 bash_completion 将不起作用。有什么想法吗?

酿造医生结果:

Please note that these warnings are just used to help the Homebrew  maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry and just ignore them. Thanks!

Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there …
Run Code Online (Sandbox Code Playgroud)

bash terminal homebrew bash-completion

5
推荐指数
1
解决办法
5500
查看次数

创建SASS混合动画

我想创建一个mixin,允许即时调整百分比。我有点绊倒了,会喜欢一些指针。

这是我要实现的目标:

   @keyframes slide-1 {
    0%   {transform: translate3d(0, 0, 0);}
    50%  { }
    100% {transform: translate3d(-100%, 0, 0);}
}

@keyframes slide-2 {
    0%   {transform: translate3d(0, 0, 0);}
    50%  { }
    100% {transform: translate3d(-200%, 0, 0);}
}
Run Code Online (Sandbox Code Playgroud)

Mixin将接受一个百分比参数-我假设动画名称是?就像是:

@keyframes $animation-name {
    0%   {transform: translate3d(0, 0, 0);}
    50%  { }
    100% {transform: translate3d($percentage, 0, 0);}
}
Run Code Online (Sandbox Code Playgroud)

sass

2
推荐指数
2
解决办法
3247
查看次数

标签 统计

bash ×2

terminal ×2

alias ×1

bash-completion ×1

git ×1

google-chrome ×1

homebrew ×1

sass ×1