summaryrefslogtreecommitdiff
path: root/.config/wmii-hg/fixes.sh
diff options
context:
space:
mode:
Diffstat (limited to '.config/wmii-hg/fixes.sh')
-rw-r--r--.config/wmii-hg/fixes.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/.config/wmii-hg/fixes.sh b/.config/wmii-hg/fixes.sh
index aa09157..5858859 100644
--- a/.config/wmii-hg/fixes.sh
+++ b/.config/wmii-hg/fixes.sh
@@ -7,11 +7,11 @@
##
unalias ls &>/dev/null
ls() {
- real_ls="`which ls` -1F"
- [ $# = 0 ] && set -- "`pwd`"
+ local real_ls=("$(which ls)" -1F)
+ [ $# = 0 ] && set -- "$PWD"
f="${1/#${WMII_DIR}/}"
if [ "$f" = "$1" ]; then
- $real_ls "$f"
+ "${real_ls[@]}" "$f"
else
wmiir ls "$f"
fi