小编Jon*_*son的帖子

ls 忽略“没有匹配项”

我想列出的所有文件的文件夹,名为中foldername有扩展testatestbtest

我的直接想法是跑 ls ./foldername/*.{a,b,}test

这工作正常,除非扩展名没有任何内容atest,在这种情况下我会收到错误消息zsh: no matches found: ./foldername/*.atest

有什么办法可以简单地忽略此错误并打印确实存在的文件?

我需要它在 ZSH 和 BASH 中工作。

ls bash zsh shell-script wildcards

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

Creating a *.local ssl certificate

I am trying to set up a single SSL certificate that will make any *.local website work over https. I have all .local domains pointing back to my local machine. I use these when developing websites. A lot of new features (geo location, service workers etc.) require an SSL.

I believe that for recent versions of Chrome/Firefox, an old school self-signed certificate no longer works.

Below are the steps I have taken after following a combination of these guides: https://deliciousbrains.com/https-locally-without-browser-privacy-errors/ …

ssl openssl certificates apache-virtualhost

4
推荐指数
1
解决办法
4663
查看次数