diff --git a/nixos/modules/programs/foot/bashrc b/nixos/modules/programs/foot/bashrc index e35bc29f117b..d3fb0ffcb4bf 100644 --- a/nixos/modules/programs/foot/bashrc +++ b/nixos/modules/programs/foot/bashrc @@ -1,3 +1,8 @@ +case "$TERM" in + foot*) : ;; + *) return 0 ;; +esac + osc7_cwd() { local strlen=${#PWD} local encoded="" diff --git a/nixos/modules/programs/foot/config.fish b/nixos/modules/programs/foot/config.fish index c7d45211327f..92f614421268 100644 --- a/nixos/modules/programs/foot/config.fish +++ b/nixos/modules/programs/foot/config.fish @@ -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 diff --git a/nixos/modules/programs/foot/zshrc b/nixos/modules/programs/foot/zshrc index 186f21c987e5..935dd49aaed5 100644 --- a/nixos/modules/programs/foot/zshrc +++ b/nixos/modules/programs/foot/zshrc @@ -1,3 +1,8 @@ +case "$TERM" in + foot*) : ;; + *) return 0 ;; +esac + function osc7-pwd() { emulate -L zsh # also sets localoptions for us setopt extendedglob