上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 68 下一页
摘要: title: zsh和bash共用自定义配置 date: 2022-04-23 13:32:29 tags: 根据这个博客:https://medium.com/@rajsek/zsh-bash-startup-files-loading-order-bashrc-zshrc-etc-e300456 阅读全文
posted @ 2024-09-28 14:12 寻找繁星 阅读(228) 评论(0) 推荐(0)
摘要: title: vscode rust插件find all references无结果 date: 2021-07-27 12:02:10 好像是因为这个插件没有人维护了,自从2020年5月就没有再更新了: https://marketplace.visualstudio.com/items?item 阅读全文
posted @ 2024-09-28 14:11 寻找繁星 阅读(89) 评论(0) 推荐(0)
摘要: title: vscode javascript用firefox来debug date: 2019-10-28 16:15:12 { "version": "0.2.0", "configurations": [ { "type": "firefox", "request": "launch", " 阅读全文
posted @ 2024-09-28 14:11 寻找繁星 阅读(27) 评论(0) 推荐(0)
摘要: title: vscode Couldn‘t start client Rust Language Server date: 2021-05-14 11:51:07 首先要安装rustup: https://rustup.rs/ Mac上可能会出现已经安装了rustup,但是vscode仍然报这个错 阅读全文
posted @ 2024-09-28 14:11 寻找繁星 阅读(169) 评论(0) 推荐(0)
摘要: title: 非交互从github中下载最新版安装包 date: 2020-10-31 17:26:26 这里以drawio-desktop为例。github链接:https://github.com/jgraph/drawio-desktop 使用github api来获取这个项目最新的relea 阅读全文
posted @ 2024-09-28 14:11 寻找繁星 阅读(73) 评论(0) 推荐(0)
摘要: title: zsh使用笔记 date: 2023-08-13 16:14:02 tags: {post_link shell/'zsh和bash共用自定义配置' } 不共享历史 zsh默认会在不同的会话之间共享历史,禁用这个特性: # https://github.com/ohmyzsh/ohmy 阅读全文
posted @ 2024-09-28 14:11 寻找繁星 阅读(62) 评论(0) 推荐(0)
摘要: title: sudo print multiple lines to file date: 2022-10-07 23:32:40 tags: sudo bash -c "cat > main.c" << EndOfMessage int main() { printf("test\n"); re 阅读全文
posted @ 2024-09-28 14:11 寻找繁星 阅读(33) 评论(0) 推荐(0)
摘要: title: shell覆盖命令的返回值 date: 2021-04-14 12:33:53 比方说在set -e的脚本里面,如果提前知道一个命令会返回非零值,但是又想让脚本继续执行下去,那就需要把命令的返回值覆盖成0。 shell里true命令的返回值是0,false命令的返回值是1,因此如果要把 阅读全文
posted @ 2024-09-28 14:11 寻找繁星 阅读(42) 评论(0) 推荐(0)
摘要: title: shell在变量中存储多行输出 date: 2021-05-18 23:29:44 其实直接 res=$(echo -e "abc\ndef") 即可。但是输出时不能直接 echo $res 这样只会输出 abc def 正确做法是 echo "$res" abc def 原文:htt 阅读全文
posted @ 2024-09-28 14:11 寻找繁星 阅读(68) 评论(0) 推荐(0)
摘要: title: shell去掉输出的末尾换行符 date: 2021-08-19 17:37:27 用echo -n $(you_command)即可。 比如: echo -n $(echo test) 输出: [searchstar@localhost ~]$ echo -n $(echo test 阅读全文
posted @ 2024-09-28 14:11 寻找繁星 阅读(277) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 68 下一页