Ensure IFS is correct when iterating over KITTY_SHELL_INTEGRATION
This commit is contained in:
parent
073eecb6bb
commit
7788f48dd5
@ -78,6 +78,8 @@ _ksi_prompt=(
|
|||||||
)
|
)
|
||||||
|
|
||||||
_ksi_main() {
|
_ksi_main() {
|
||||||
|
builtin local ifs="$IFS"
|
||||||
|
IFS=" "
|
||||||
for i in ${KITTY_SHELL_INTEGRATION[@]}; do
|
for i in ${KITTY_SHELL_INTEGRATION[@]}; do
|
||||||
case "$i" in
|
case "$i" in
|
||||||
"no-cursor") _ksi_prompt[cursor]='n';;
|
"no-cursor") _ksi_prompt[cursor]='n';;
|
||||||
@ -87,6 +89,7 @@ _ksi_main() {
|
|||||||
"no-cwd") _ksi_prompt[cwd]='n';;
|
"no-cwd") _ksi_prompt[cwd]='n';;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
|
IFS="$ifs"
|
||||||
|
|
||||||
builtin unset KITTY_SHELL_INTEGRATION
|
builtin unset KITTY_SHELL_INTEGRATION
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user