refactor: use builtin hostname function

pull/7025/head
Hanna 2025-04-07 16:02:53 -04:00 committed by GitHub
parent e73970533a
commit 9808c13796
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -75,7 +75,8 @@
}
fn report-pwd {
printf "\e]7;file://%s%s\a" (hostname) (pwd)
use platform
printf "\e]7;file://%s%s\a" (platform:hostname) ($pwd)
}
fn sudo-with-terminfo {|@args|
@ -109,7 +110,7 @@
var features = [(str:split ',' $E:GHOSTTY_SHELL_FEATURES)]
if (has-value $features title) {
set after-chdir = (conj $after-chdir {|_| report-pwd })
set after-chdir = (conj $after-chdir {|_| report- })
}
if (has-value $features cursor) {
fn beam { printf "\e[5 q" }