From e60f35d8665b91ea2cf781db5d536ba0a3948b36 Mon Sep 17 00:00:00 2001 From: Julien Nicoulaud Date: Wed, 18 Aug 2010 16:51:31 +0800 Subject: [PATCH] Avoid 'scalar parameter data_dir created globally in function' warning in Zsh --- autojump.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autojump.zsh b/autojump.zsh index 5fef87e..310a292 100755 --- a/autojump.zsh +++ b/autojump.zsh @@ -14,7 +14,7 @@ #You should have received a copy of the GNU General Public License #along with autojump. If not, see . -data_dir=${XDG_DATA_HOME:-$([ -e ~/.local/share ] && echo ~/.local/share || echo ~)} +local data_dir=${XDG_DATA_HOME:-$([ -e ~/.local/share ] && echo ~/.local/share || echo ~)} if [ "$data_dir" = "~" ] then export AUTOJUMP_DATA_DIR=${data_dir}