dblume commited on 2024-01-21 22:28:27
Showing 1 changed files, with 2 additions and 2 deletions.
... | ... |
@@ -152,7 +152,7 @@ alias clip="expand | cut -b1-\$COLUMNS" |
152 | 152 |
# N.B. If changing -l to -1, remove tail, because "total" line is only for -l |
153 | 153 |
lh() { |
154 | 154 |
if [[ $(uname -s) != Darwin* ]]; then |
155 |
- readonly color_always="--color=always" |
|
155 |
+ local -r color_always="--color=always" |
|
156 | 156 |
fi |
157 | 157 |
ls $color_always -ltqh "$@" | head -$(($LINES/4)) | tail -n +2 |
158 | 158 |
if [ $(ls -1 "$@" | wc -l) -gt $(($LINES/4)) ]; then |
... | ... |
@@ -166,7 +166,7 @@ lt() { |
166 | 166 |
echo ... |
167 | 167 |
fi |
168 | 168 |
if [[ $(uname -s) != Darwin* ]]; then |
169 |
- readonly color_always="--color=always" |
|
169 |
+ local -r color_always="--color=always" |
|
170 | 170 |
fi |
171 | 171 |
ls $color_always -rltqh "$@" | tail -n $(($LINES/4)) |
172 | 172 |
} |
173 | 173 |