From 60d03d7601e18e1e44e5745c5e6e99432e227171 Mon Sep 17 00:00:00 2001 From: Xuefeng Chen Date: Tue, 6 Feb 2024 13:53:46 -0800 Subject: [PATCH] change_output: set it as default --- cmd/exec.go | 4 +--- config/config.go | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/cmd/exec.go b/cmd/exec.go index 55b16e7..95bc3cc 100644 --- a/cmd/exec.go +++ b/cmd/exec.go @@ -34,9 +34,7 @@ func execute(cmd *cobra.Command, args []string) (err error) { if config.Flag.Debug { fmt.Printf("Command: %s\n", command) } - if config.Flag.Command || config.Conf.General.ShowCommand { - fmt.Printf("%s: %s\n", color.YellowString("Command"), command) - } + fmt.Printf("> %s\n", command) return run(command, os.Stdin, os.Stdout) } diff --git a/config/config.go b/config/config.go index ab8d736..a0b8ea3 100644 --- a/config/config.go +++ b/config/config.go @@ -29,7 +29,6 @@ type GeneralConfig struct { SelectCmd string `toml:"selectcmd"` Backend string `toml:"backend"` SortBy string `toml:"sortby"` - ShowCommand bool `toml:"show_command"` } // GistConfig is a struct of config for Gist