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
@@ -2,12 +2,16 @@ package cmd
import (
"gosh/types"
"gosh/util"
"path/filepath"
"github.com/fatih/color"
)
func GolshPyapath(sh *types.Shell, path string) types.CmdOutput {
path = util.ExpandHome(path)
abs, err := filepath.Abs(path)
red := color.New(color.FgRed).SprintFunc()