summaryrefslogtreecommitdiffstats
path: root/pkg/config
diff options
context:
space:
mode:
authorRyooooooga <eial5q265e5@gmail.com>2021-10-09 16:32:36 +0900
committerJesse Duffield <jessedduffield@gmail.com>2021-10-16 22:40:50 +1100
commit7b615e31860c1ea56ddc5813b81a8f20d012af34 (patch)
tree658cca8291f07f5355537d3d30007b9758d833aa /pkg/config
parenta2108362de43a8cdab48151f84142b833f0d3d98 (diff)
Fix open link command in Windows
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/config_linux.go4
-rw-r--r--pkg/config/config_windows.go4
2 files changed, 4 insertions, 4 deletions
diff --git a/pkg/config/config_linux.go b/pkg/config/config_linux.go
index fe75b7322..dd5708a53 100644
--- a/pkg/config/config_linux.go
+++ b/pkg/config/config_linux.go
@@ -5,7 +5,7 @@ func GetPlatformDefaultConfig() OSConfig {
return OSConfig{
EditCommand: ``,
EditCommandTemplate: `{{editor}} {{filename}}`,
- OpenCommand: `sh -c "xdg-open {{filename}} >/dev/null"`,
- OpenLinkCommand: `sh -c "xdg-open {{link}} >/dev/null"`,
+ OpenCommand: `xdg-open {{filename}} >/dev/null`,
+ OpenLinkCommand: `xdg-open {{link}} >/dev/null`,
}
}
diff --git a/pkg/config/config_windows.go b/pkg/config/config_windows.go
index fb42689a9..301eecec1 100644
--- a/pkg/config/config_windows.go
+++ b/pkg/config/config_windows.go
@@ -5,7 +5,7 @@ func GetPlatformDefaultConfig() OSConfig {
return OSConfig{
EditCommand: ``,
EditCommandTemplate: `{{editor}} {{filename}}`,
- OpenCommand: `cmd /c start "" {{filename}}`,
- OpenLinkCommand: `cmd /c start "" {{link}}`,
+ OpenCommand: `start "" {{filename}}`,
+ OpenLinkCommand: `start "" {{link}}`,
}
}