aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/cmds.go22
1 files changed, 22 insertions, 0 deletions
diff --git a/config/cmds.go b/config/cmds.go
new file mode 100644
index 00000000..16208914
--- /dev/null
+++ b/config/cmds.go
@@ -0,0 +1,22 @@
+package config
+
+import (
+ "os"
+)
+
+func EditorCmds() []string {
+ return []string{
+ Compose.Editor,
+ os.Getenv("EDITOR"),
+ "vi",
+ "nano",
+ }
+}
+
+func PagerCmds() []string {
+ return []string{
+ Viewer.Pager,
+ os.Getenv("PAGER"),
+ "less -Rc",
+ }
+}