added ~ as home processing
This commit is contained in:
1 parent
7062e798a9
commit
9e46cc9105
7 files changed
+79
-6
No files matched your search
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user