开发 Tips(10)

主要记录最近遇到的一些开发问题,解决方法。

1. VS Code 终端执行 .bash_profile 初始化脚本

通过添加启动命令参数,可以使得打开 shell 时,执行初始化脚本 .bash_profile 。编辑 settings.json,以 OS X 为例,新增如下内容即可:

相关推荐

站点声明:本站部分内容转载自网络,作品版权归原作者及来源网站所有,任何内容转载、商业用途等均须联系原作者并注明来源。

相关侵权、举报、投诉及建议等,请发邮件至E-mail:service@mryunwei.com

回到顶部
1
2
3
{
  "terminal.integrated.shellArgs.osx": ["-l"]
}
{
  "terminal.integrated.fontFamily": "Source Code Pro for Powerline"
}
diskutil list
/dev/disk2 (external, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:     FDisk_partition_scheme                        *7.8 GB     disk2
   1:             Windows_FAT_32 ESD-ISO                 7.8 GB     disk2s4
diskutil unmountDisk /dev/disk2
Unmount of all volumes on disk2 was successful
sudo dd if=/your_real_path/CentOS-7-x86_64-DVD-1810.iso  of=/dev/rdisk2 bs=1m
diskutil eject /dev/disk2
go build main.go
go get -u github.com/golang/dep/cmd/dep
dep ensure
go build main.go
go mod download