func History() {
	var gopath string = os.Getenv("GOSH_HOME")
	file, _ := os.Open(gopath + "/history.txt")
	scanner := bufio.NewScanner(file)
	var num = 1
	fmt.Println("   \033[0;32m#      command\033[0m")
	fmt.Println(" ╭━━━━━━━━━━━━━━━━━━━╮")
	for scanner.Scan() {
		z := 14 - len(scanner.Text())
		spaces := ""
		if z >= 0 {
		  spaces = strings.Repeat(" ", z)
		}
		if strings.Compare(string(scanner.Text()), "") == 0 {
			continue
		}
		if num < 10 {
			fmt.Println(" │ \033[0;32m" + strconv.Itoa(num) + " \033[0m │ " + scanner.Text() + spaces + "│")
		} else {
			fmt.Println(" │ \033[0;32m" + strconv.Itoa(num) + " \033[0m│ " + scanner.Text() + spaces + "│")
		}
		num++
	}
	fmt.Println(" ╰━━━━━━━━━━━━━━━━━━━╯")
}
History the history command
package internal
import (
	"bufio"
	"fmt"
	"log"
	"os"
	"strconv"
	"strings"
)
func ClearHistory() string {
	var gopath string = os.Getenv("GOSH_HOME")
	f, _ := os.OpenFile(gopath+"/history.txt",
		os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
	f.Truncate(0)
	fmt.Println("\033[0;32mHistory has been cleared ✔\033[0m")
	return "History has been cleared ✔\n"
}