摘要: xonsh 是 python 驱动的 shell, 所以在操作效率及交互和某些功能的先进性上比 bash 等优秀, 并且十分容易上手. 但相应地, 它是一个新兴的 shell, 并且不是所谓 "POSIX Shell"(尽管某些行为比较相似), 所以仍需做一些了解. xonsh 的提示符为 @, 因 阅读全文
posted @ 2026-04-12 22:57 pluvium27 阅读(24) 评论(0) 推荐(0)
摘要: 常用于懒得配置令牌但是有现成公钥配置的时候 bash -c 'git remote | while read r; do url=$(git remote get-url "$r"); new_url=$(echo "$url" | sed "s#https://#git@#; s#/#:#"); 阅读全文
posted @ 2026-04-12 22:54 pluvium27 阅读(1) 评论(0) 推荐(0)
摘要: 当我们设置 std::vector 的长度时, 常这样书写: ```cpp std::vector vec(length); ``` 这样做一般不会出问题, 编译可正常通过, 然而当把 length 设置为 0 时, 执行有报错: ```bash Segmentation fault ``` 程序发 阅读全文
posted @ 2023-08-15 11:16 pluvium27 阅读(486) 评论(0) 推荐(0)