mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
Fix osx function: "not valid in this context"
I have been continually having problems with the "trash" function provided by the osx plugin, getting this error: trash:local:2: not valid in this context: It seems like adding quotes around the assignment in [osx.plugin.zsh#L142](https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/osx/osx.plugin.zsh#L142) fixed my problem. Does this look good to you? Thanks!
This commit is contained in:
parent
207b6a1e33
commit
73212ded4e
1 changed files with 1 additions and 1 deletions
|
@ -139,7 +139,7 @@ function man-preview() {
|
||||||
|
|
||||||
function trash() {
|
function trash() {
|
||||||
local trash_dir="${HOME}/.Trash"
|
local trash_dir="${HOME}/.Trash"
|
||||||
local temp_ifs=$IFS
|
local temp_ifs="$IFS"
|
||||||
IFS=$'\n'
|
IFS=$'\n'
|
||||||
for item in "$@"; do
|
for item in "$@"; do
|
||||||
if [[ -e "$item" ]]; then
|
if [[ -e "$item" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue