Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
f0981d56
Commit
f0981d56
authored
Oct 31, 2015
by
Andrew Janke
Committed by
Marc Cornellà
Nov 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
termsupport: protect subshell with quotes
parent
d2e1c71b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
functions.zsh
lib/functions.zsh
+1
-1
termsupport.zsh
lib/termsupport.zsh
+1
-1
No files found.
lib/functions.zsh
View file @
f0981d56
...
...
@@ -114,7 +114,7 @@ zmodload zsh/langinfo
# Returns nonzero if encoding failed.
#
# Usage:
# omz_urlencode [-r] [-m] <string>
# omz_urlencode [-r] [-m]
[-P]
<string>
#
# -r causes reserved characters (;/?:@&=+$,) to be escaped
#
...
...
lib/termsupport.zsh
View file @
f0981d56
...
...
@@ -74,7 +74,7 @@ if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then
# the host name to disambiguate local vs. remote paths.
# Percent-encode the pathname.
local
URL_PATH
=
$(
omz_urlencode
-P
$PWD
)
local
URL_PATH
=
"
$(
omz_urlencode
-P
$PWD
)
"
[[
$?
!=
0
]]
&&
return
1
local
PWD_URL
=
"file://
$HOST$URL_PATH
"
# Undocumented Terminal.app-specific control sequence
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment