mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-24 14:50:07 +00:00
Remove unnecessary braces.
This commit is contained in:
parent
187cf07c91
commit
cb37c934c0
1 changed files with 21 additions and 23 deletions
|
@ -63,9 +63,8 @@ if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then
|
|||
# Outputs the encoded string on stdout
|
||||
# Returns nonzero if encoding failed
|
||||
function _omz_urlencode() {
|
||||
local url_str=''
|
||||
{
|
||||
local str=$1
|
||||
local url_str=''
|
||||
|
||||
# URLs must use UTF-8 encoding; convert if required
|
||||
local encoding=${LC_CTYPE/*./}
|
||||
|
@ -90,7 +89,6 @@ if [[ "$TERM_PROGRAM" == "Apple_Terminal" ]] && [[ -z "$INSIDE_EMACS" ]]; then
|
|||
done
|
||||
echo $url_str
|
||||
}
|
||||
}
|
||||
|
||||
# Emits the control sequence to notify Terminal.app of the cwd
|
||||
function update_terminalapp_cwd() {
|
||||
|
|
Loading…
Reference in a new issue