mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-06 01:05:48 +02:00
Ensure IFS is correct when iterating over KITTY_SHELL_INTEGRATION
This commit is contained in:
@@ -78,6 +78,8 @@ _ksi_prompt=(
|
||||
)
|
||||
|
||||
_ksi_main() {
|
||||
builtin local ifs="$IFS"
|
||||
IFS=" "
|
||||
for i in ${KITTY_SHELL_INTEGRATION[@]}; do
|
||||
case "$i" in
|
||||
"no-cursor") _ksi_prompt[cursor]='n';;
|
||||
@@ -87,6 +89,7 @@ _ksi_main() {
|
||||
"no-cwd") _ksi_prompt[cwd]='n';;
|
||||
esac
|
||||
done
|
||||
IFS="$ifs"
|
||||
|
||||
builtin unset KITTY_SHELL_INTEGRATION
|
||||
|
||||
|
||||
Reference in New Issue
Block a user