|
|
|
@ -53,7 +53,6 @@ func main() { |
|
|
|
windowId := flag.Int("windowId", -1, "$WINDOWID - session id") |
|
|
|
windowId := flag.Int("windowId", -1, "$WINDOWID - session id") |
|
|
|
shlvl := flag.Int("shlvl", -1, "$SHLVL") |
|
|
|
shlvl := flag.Int("shlvl", -1, "$SHLVL") |
|
|
|
|
|
|
|
|
|
|
|
realPwd := flag.String("realPwd", "", "realpath $PWD") |
|
|
|
|
|
|
|
host := flag.String("host", "", "$HOSTNAME") |
|
|
|
host := flag.String("host", "", "$HOSTNAME") |
|
|
|
hosttype := flag.String("hosttype", "", "$HOSTTYPE") |
|
|
|
hosttype := flag.String("hosttype", "", "$HOSTTYPE") |
|
|
|
ostype := flag.String("ostype", "", "$OSTYPE") |
|
|
|
ostype := flag.String("ostype", "", "$OSTYPE") |
|
|
|
@ -95,6 +94,12 @@ func main() { |
|
|
|
realtimeBeforeLocal := realtimeBefore + timezoneBeforeOffset |
|
|
|
realtimeBeforeLocal := realtimeBefore + timezoneBeforeOffset |
|
|
|
realtimeAfterLocal := realtimeAfter + timezoneAfterOffset |
|
|
|
realtimeAfterLocal := realtimeAfter + timezoneAfterOffset |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
realPwd, err := filepath.EvalSymlinks(*pwd) |
|
|
|
|
|
|
|
if err != nil { |
|
|
|
|
|
|
|
log.Println("err while handling realpath:", err) |
|
|
|
|
|
|
|
realPwd = "" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
gitDir, gitRealDir := getGitDirs(*gitCdup, *gitCdupExitCode, *pwd) |
|
|
|
gitDir, gitRealDir := getGitDirs(*gitCdup, *gitCdupExitCode, *pwd) |
|
|
|
if *gitRemoteExitCode != 0 { |
|
|
|
if *gitRemoteExitCode != 0 { |
|
|
|
*gitRemote = "" |
|
|
|
*gitRemote = "" |
|
|
|
@ -119,7 +124,7 @@ func main() { |
|
|
|
Term: *term, |
|
|
|
Term: *term, |
|
|
|
|
|
|
|
|
|
|
|
// non-posix
|
|
|
|
// non-posix
|
|
|
|
RealpathPwd: *realPwd, |
|
|
|
RealPwd: realPwd, |
|
|
|
Pid: *pid, |
|
|
|
Pid: *pid, |
|
|
|
ShellPid: *shellPid, |
|
|
|
ShellPid: *shellPid, |
|
|
|
WindowId: *windowId, |
|
|
|
WindowId: *windowId, |
|
|
|
|