We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ee5bee commit 457cec0Copy full SHA for 457cec0
functions/_fifc.fish
@@ -47,10 +47,11 @@ function _fifc
47
# We use eval hack because wrapping source command
48
# inside a function cause some delay before fzf to show up
49
eval $cmd | while read -l token
50
- # string escape will escape '~' if present (at the begenning of path).
51
- # so we need to exclude it from escaping
+ # don't escape '~' for path, `$` for environ
52
if string match --quiet '~*' -- $token
53
set -a result (string join -- "" "~" (string sub --start 2 -- $token | string escape))
+ else if string match --quiet '$*' -- $token
54
+ set -a result (string join -- "" "\$" (string sub --start 2 -- $token | string escape))
55
else
56
set -a result (string escape --no-quoted -- $token)
57
end
0 commit comments