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.
2 parents b2ac36e + 457cec0 commit 1bc3014Copy full SHA for 1bc3014
functions/_fifc.fish
@@ -48,10 +48,11 @@ function _fifc
48
# We use eval hack because wrapping source command
49
# inside a function cause some delay before fzf to show up
50
eval $cmd | while read -l token
51
- # string escape will escape '~' if present (at the begenning of path).
52
- # so we need to exclude it from escaping
+ # don't escape '~' for path, `$` for environ
53
if string match --quiet '~*' -- $token
54
set -a result (string join -- "" "~" (string sub --start 2 -- $token | string escape))
+ else if string match --quiet '$*' -- $token
55
+ set -a result (string join -- "" "\$" (string sub --start 2 -- $token | string escape))
56
else
57
set -a result (string escape --no-quoted -- $token)
58
end
0 commit comments