nixos/foot: only modify the prompt when running inside foot (#534737)
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
case "$TERM" in
|
||||
foot*) : ;;
|
||||
*) return 0 ;;
|
||||
esac
|
||||
|
||||
osc7_cwd() {
|
||||
local strlen=${#PWD}
|
||||
local encoded=""
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,3 +1,8 @@
|
||||
case "$TERM" in
|
||||
foot*) : ;;
|
||||
*) return 0 ;;
|
||||
esac
|
||||
|
||||
function osc7-pwd() {
|
||||
emulate -L zsh # also sets localoptions for us
|
||||
setopt extendedglob
|
||||
|
||||
Reference in New Issue
Block a user