MacOS set MarkText and PicGo

2023-11-02

MacOS set MarkText and PicGo



192:~ xxx$ picgo -h
Usage: picgo [options] [command]

Options:
  -v, --version                        output the version number
  -d, --debug                          debug mode
  -s, --silent                         silent mode
  -c, --config <path>                  set config path
  -p, --proxy <url>                    set proxy for uploading
  -h, --help                           display help for command

Commands:
  install|add [options] <plugins...>   install picgo plugin
  uninstall|rm <plugins...>            uninstall picgo plugin
  update [options] <plugins...>        update picgo plugin
  set|config <module> [name]           configure config of picgo modules
  upload|u [input...]                  upload, go go go
  use [module]                         use modules of picgo
  init [options] <template> [project]  create picgo plugin's development
                                       templates
  i18n [lang]                          change picgo language
  help [command]                       display help for command
192:~ xxx$ picgo set uploader
? Choose a(n) uploader aliyun
? accessKeyId: xxxxxxxxxxx
? accessKeySecret: [hidden]
? bucket: image-zxl
设定存储区域 例如:oss-cn-beijing oss-cn-hangzhou
设定存储路径 例如:test/ pico/imgs/
设定自定义域名 例如:https://test.com https://ixxxx.oss-cn-hangzhou.aliyuncs设定网址后缀 例如:?x-oss-process=xxx 
[PicGo SUCCESS]: Configure config successfully!
[PicGo INFO]: If you want to use this config, please run 'picgo use uploader'

192:~ xxx$ pic use uploader
pic:fatal error: can't open `use': No such file or directory
192:~ xxx$ picgo use uploader
? Use an uploader aliyun
[PicGo SUCCESS]: Configure config successfully!


192:~ xxx$ picgo u 
[PicGo INFO]: Before transform
[PicGo INFO]: Transforming... Current transformer is [path]
[PicGo INFO]: Before upload
[PicGo INFO]: Uploading... Current uploader is [aliyun]
[PicGo SUCCESS]: 
https://xxxl.oss-cn-hangzhou.aliyuncs.com/pxxx0225204856.png
192:~ xxx$ 

192:~ xxx$ cat picgo_upload.sh 
#!/bin/bash
#source /etc/profile
#picgo u
#!/bin/bashsource/etc/profileexportLANG="en_US.UTF-8"img="$(~/.npm-global/bin/picgo u$1)"echo$img|awk'{print $NF}'

#picgo u $1


source /etc/profile
export LANG="en_US.UTF-8" 
img="$(picgo u $1)"
echo $img | awk '{print $NF}' 

picshell

Ref:

MarkText提示“your system does not have picgo installed”解决办法

第五步:准备一个sh脚本,比如我的picgo_upload.sh,并给执行权限,如chmod 755 picgo_upload.sh

#!/bin/bashsource/etc/profileexportLANG=“en_US.UTF-8"img=”$(~/.npm-global/bin/picgo u 1 ) " e c h o 1)"echo 1)"echoimg|awk’{print $NF}’

作者:阿广本尊
链接:https://www.jianshu.com/p/e44d288d5020
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

MacOS set MarkText and PicGo 的相关文章

随机推荐

  • 机器学习就业法则

    人工时代的来临 也使我们的教育向信息化和数据化发生转变 机器人教育既符合国家发展战略需要 格物斯坦与此同时 人工智能 教育 的培养方案与社会对于未来人才的能力要求完美匹配 自动驾驶 离群人群自动检测 比如机场和火车站的恐怖分子检测 等应用都
  • Nacos startup无反应,启动报错的解决办法

    今天在运行Nacos的时候遇见了点问题 记录一下 我的系统是win11 运行的Nacos版本是 2 0 3 https github com alibaba nacos releases tag 2 0 3 运行startup cmd 无反
  • 虚拟机 ifconfig命令后无法获得网卡信息和IP地址

    问题出现原因 虚拟机挂起后重新打开失败 重启虚拟机后 无法连接到网络 使用ifconfig命令查看ip 发现网卡没起开 而且ping www baidu com 报错 后面尝试修改了一些配置文件 都没好使 最后使用这个方法 sudo dhc
  • C++ 正态分布随机数 平均分布随机数 default_random_engine normal_distribution

    include
  • elasticsearch match模糊查询

    目录 python查询自定义字段 elasticsearch 中term与match区别 python查询自定义字段 import json from elasticsearch import Elasticsearch es Elasti
  • jdk-8u151-nb-8_2-windows-x64软件安装教程及环境配置

    亲测可用
  • 【TCP协议】MTU和MSS详解

    需要注意的是 区别两种帧封装格式 802标准帧和以太网帧 1 在802标准定义的帧格式中 长度字段是指它后续数据的字节长度 但不包括C R C检验码 RFC 1042 IEEE 802 2 RFC 894 以太网 所以 以太网帧报头为目的地
  • SSM框架下,级联数据库表的访问查询

    SSM框架下 级联数据库表的访问查询 级联数据库表 如何快速通过子级查询父级 级联数据库表 在日常的软件设计中 多级联动的数据库表比较常见 如省市联动的数据 对这些数据按级分表的方式存储 以表示数据之间的包含关系 一般情况下 不会使用外键将
  • [NSSCTF] web之[HDCTF 2023]SearchMaster

    前言 靶机 HDCTF 2023 SearchMaster NSSCTF HDCTF 2023 SearchMaster 看到题目的提示 ovo but you can post me a data tip 你可以使用 POST请求发送da
  • 蛇形矩阵(C++)

    蛇形矩阵 C 文章目录 蛇形矩阵 C 一 题目 二 思路分析 三 代码实现 四 运行结果 一 题目 输入 3 3 6 2 输出 1 2 3 8 9 4 7 6 5 1 2 3 4 5 6 20 21 22 23 24 7 19 32 33
  • 认识区块链,认知区块链

    周末参加了 唐胡子遇见区块链 线下交流会 除了第一次近距离接触区块链技术 也是直接面基了两位大咖 汪洋总和友强总 两位一直在技术社群中活跃 一直也未曾谋面 这次终于得见 感谢唐胡子 唐帮主提供的平台 结合本次交流会及个人在平时的一些学习 作
  • Swift3.0 -- get & set 方法

    1 Swift中的get set 方法 定义一个Person类 class Person NSObject getter setter 仅供演示 日常开发不用 var name String var name String get 返回成员
  • 针对urdf文件中出现中文注释导致报错的问题

    ubuntu18 04 melodic版本中一般使用python2 7环境 该环境下urdf文件中不能有中文注释出现 否则报错 UnicodeEncodeError ascii codec can t encode characters i
  • 【华为OD机试2023】二进制差异数 100% C++ Java Python

    华为OD机试2023 二进制差异数 100 C Java Python 前言 如果您在准备华为的面试 期间有想了解的可以私信我 我会尽可能帮您解答 也可以给您一些建议 本文解法非最优解 即非性能最优 不能保证通过率 Tips1 机试为ACM
  • Servlet的4种会话管理技术

    Servlet的会话管理技术主要有4种 URL重写 Cookie 隐藏表单域以及HttpSession 下面的例子通过一个动态验证码的实例详细说明了这4种技术的具体应用方式 为了简单起见 动态验证码没有采用图片生成技术 其原理和效果与本例中
  • 国际货运代理行业分析

    国际货运代理面临的困局 是一个时代的结束 https zhuanlan zhihu com p 68044703 国际货运代理行业的未来 https zhuanlan zhihu com p 86243754 国际货运代理的存在有何意义 h
  • Spring boot 2.7以上版本集成swagger

    pom xml 引入依赖
  • 使用轻量级 CDC debezium-server-databend 构建实时数据同步

    作者 韩山杰 Databend Cloud 研发工程师 hantmac Jeremy GitHub Debezium Server Databend 是一个基于 Debezium Engine 自研的轻量级 CDC 项目 用于实时捕获数据库
  • .NET 正则表达式

    using System Text RegularExpressions 使用正则表达式替换主题中的特殊符号 用以生成文件夹或者文件名 string title Regex Replace Subject lt gt string patt
  • MacOS set MarkText and PicGo

    MacOS set MarkText and PicGo 192 xxx picgo h Usage picgo options command Options v version output the version number d d