0%

epgis 例子

ctrl+a 到开头
ctrl+e 到结尾

esc+b 向后(左)一个单词
esc+f 向前(右)一个单词

设置 iTerm2 的 preferences 的 keys

⌘← send ^[b
⌘→ send ^[f

gem source

sass 出错,重装

sudo gem install sass

报告 ssl 错误!因为: 之前淘宝的源已经无法使用

  1. 查看gem源

gem source -l

  1. 删除源

gem source -r <源地址>

3.添加源

gem sources –add https://gems.ruby-china.com


$ gem update –system # 这里请翻墙一下
$ gem -v
2.6.3

$ gem sources –add https://gems.ruby-china.com/ –remove https://rubygems.org/
$ gem sources -l
https://gems.ruby-china.com

确保只有 gems.ruby-china.com

如何搭建 https

mac 删除 顽固文件

跑程序,跑出了 超过256层嵌套的目录!!回收站无法删除

rm -R [把 trash 里面的目录拖进 终端窗口]


Type of copy the following into Terminal: sudo rm -R (there needs to be a space after the R)
But don’t press enter.
Now Control-click on your Trash icon to open it.
Select the files in your trash.
Drag them to the Terminal window.
Now press Enter
Enter your administrator password (it won’t show up)
Hit Enter

via

https://www.macworld.co.uk/how-to/mac/how-empty-trash-on-mac-3682422/

https://www.imore.com/how-force-empty-trash-your-mac-using-terminal