added ~ as home processing

This commit is contained in:
JISAUAY committed 2025-06-27 11:23:15 -05:00
1 parent 7062e798a9
commit 9e46cc9105
7 files changed
+79 -6

No files matched your search

+4
View File
@@ -4,11 +4,15 @@ import (
"os"
"gosh/types"
"gosh/util"
"github.com/fatih/color"
)
func GoshCd(sh *types.Shell, dir string) types.CmdOutput {
dir = util.ExpandHome(dir)
err := os.Chdir(dir)
red := color.New(color.FgRed).SprintFunc()
if err != nil {