Keep variable local

This commit is contained in:
2020-06-25 23:54:53 +02:00
parent d9de21efce
commit 7526a5530b

View File

@@ -23,7 +23,7 @@ function _nemo_wd_default() {
## or if we are in a directory that matches the regex in LS_SHOW_ALL_DIRS
function _ls_show_hidden() {
# Can be overwritten by settings it before calling
LS_SHOW_ALL_DIRS=${LS_SHOW_ALL_DIRS:-"dotfiles|\.config"}
local LS_SHOW_ALL_DIRS=${LS_SHOW_ALL_DIRS:-"dotfiles|\.config"}
# if a path is given, target will contain the given directory or the directory in which the
# given file is located