nixos/foot: only modify the prompt when running inside foot (#534737)

This commit is contained in:
Sandro
2026-06-29 22:31:52 +00:00
committed by GitHub
3 changed files with 14 additions and 0 deletions
+5
View File
@@ -1,3 +1,8 @@
case "$TERM" in
foot*) : ;;
*) return 0 ;;
esac
osc7_cwd() {
local strlen=${#PWD}
local encoded=""
+4
View File
@@ -1,3 +1,7 @@
if ! string match -q "foot*" "$TERM"
return 0
end
function update_cwd_osc --on-variable PWD --description 'Notify terminals when $PWD changes'
if status --is-command-substitution || set -q INSIDE_EMACS
return
+5
View File
@@ -1,3 +1,8 @@
case "$TERM" in
foot*) : ;;
*) return 0 ;;
esac
function osc7-pwd() {
emulate -L zsh # also sets localoptions for us
setopt extendedglob