mirror of
https://github.com/JanDeDobbeleer/oh-my-posh.git
synced 2025-03-05 20:49:04 -08:00
refactor(terminal): rename ConsolePwd to Pwd
This commit is contained in:
parent
dbc0a370b2
commit
ddd2d154df
|
@ -93,7 +93,7 @@ func (e *Engine) pwd() {
|
||||||
|
|
||||||
// Backwards compatibility for deprecated OSC99
|
// Backwards compatibility for deprecated OSC99
|
||||||
if e.Config.OSC99 {
|
if e.Config.OSC99 {
|
||||||
e.write(terminal.ConsolePwd(terminal.OSC99, "", "", cwd))
|
e.write(terminal.Pwd(terminal.OSC99, "", "", cwd))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -110,7 +110,7 @@ func (e *Engine) pwd() {
|
||||||
|
|
||||||
user := e.Env.User()
|
user := e.Env.User()
|
||||||
host, _ := e.Env.Host()
|
host, _ := e.Env.Host()
|
||||||
e.write(terminal.ConsolePwd(pwdType, user, host, cwd))
|
e.write(terminal.Pwd(pwdType, user, host, cwd))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (e *Engine) newline() {
|
func (e *Engine) newline() {
|
||||||
|
|
|
@ -274,7 +274,7 @@ func ChangeLine(numberOfLines int) string {
|
||||||
return fmt.Sprintf(formats.linechange, numberOfLines, position)
|
return fmt.Sprintf(formats.linechange, numberOfLines, position)
|
||||||
}
|
}
|
||||||
|
|
||||||
func ConsolePwd(pwdType, userName, hostName, pwd string) string {
|
func Pwd(pwdType, userName, hostName, pwd string) string {
|
||||||
if Plain {
|
if Plain {
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue