小编Eth*_*han的帖子

如何为 PostgreSQL 的 psql 客户端设置外部编辑器?

我在~/.psqlrc文件中放什么来设置默认编辑器?

我要使用的编辑器 ( Textmate ) 位于/Users/username/bin/mate.

在文档中找到了他们谈论它的地方,并尝试了几种语法变体,但似乎无法使其正常工作。

例如,这不起作用......

\set PSQL_EDITOR "/Users/username/bin/mate"
Run Code Online (Sandbox Code Playgroud)

在 psql 中,当我输入时,\e我得到...

sh: /usr/local/bin/mate: No such file or directory
sh: line 0: exec: /usr/local/bin/mate: cannot execute: No such file or directory
Run Code Online (Sandbox Code Playgroud)

postgresql

9
推荐指数
2
解决办法
1万
查看次数

标签 统计

postgresql ×1