mirror of
https://github.com/IlanCosman/tide.git
synced 2024-12-23 12:03:48 +03:00
Quote PATH when passing to subshell (fixes #329)
This commit is contained in:
parent
a86dc04fda
commit
694487b9da
@ -38,7 +38,7 @@ function fish_prompt
|
|||||||
_tide_status=\$status _tide_pipestatus=\$pipestatus if not set -e _tide_repaint
|
_tide_status=\$status _tide_pipestatus=\$pipestatus if not set -e _tide_repaint
|
||||||
jobs -q && set -lx _tide_jobs
|
jobs -q && set -lx _tide_jobs
|
||||||
$fish_path -c \"set _tide_pipestatus \$_tide_pipestatus
|
$fish_path -c \"set _tide_pipestatus \$_tide_pipestatus
|
||||||
PATH=\$PATH CMD_DURATION=\$CMD_DURATION fish_bind_mode=\$fish_bind_mode set $prompt_var (_tide_2_line_prompt)\" &
|
PATH='\$PATH' CMD_DURATION=\$CMD_DURATION fish_bind_mode=\$fish_bind_mode set $prompt_var (_tide_2_line_prompt)\" &
|
||||||
builtin disown
|
builtin disown
|
||||||
|
|
||||||
command kill \$_tide_last_pid 2>/dev/null
|
command kill \$_tide_last_pid 2>/dev/null
|
||||||
@ -66,7 +66,7 @@ function fish_prompt
|
|||||||
_tide_status=\$status _tide_pipestatus=\$pipestatus if not set -e _tide_repaint
|
_tide_status=\$status _tide_pipestatus=\$pipestatus if not set -e _tide_repaint
|
||||||
jobs -q && set -lx _tide_jobs
|
jobs -q && set -lx _tide_jobs
|
||||||
$fish_path -c \"set _tide_pipestatus \$_tide_pipestatus
|
$fish_path -c \"set _tide_pipestatus \$_tide_pipestatus
|
||||||
PATH=\$PATH CMD_DURATION=\$CMD_DURATION fish_bind_mode=\$fish_bind_mode set $prompt_var (_tide_1_line_prompt)\" &
|
PATH='\$PATH' CMD_DURATION=\$CMD_DURATION fish_bind_mode=\$fish_bind_mode set $prompt_var (_tide_1_line_prompt)\" &
|
||||||
builtin disown
|
builtin disown
|
||||||
|
|
||||||
command kill \$_tide_last_pid 2>/dev/null
|
command kill \$_tide_last_pid 2>/dev/null
|
||||||
|
Loading…
Reference in New Issue
Block a user