aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/grep.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-06-06 14:29:12 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-06-06 14:29:12 +1200
commit415f6701c246363a463f828d24a86cb3e13488b6 (patch)
tree143f1d9b0d2944a14b513c27acdb4dccd0e0f9a3 /bash/bashrc.d/grep.bash
parentUse magic-space expansion for !hist (diff)
downloaddotfiles-415f6701c246363a463f828d24a86cb3e13488b6.tar.gz
dotfiles-415f6701c246363a463f828d24a86cb3e13488b6.zip
Avoid command substitution inline declaration
Diffstat (limited to 'bash/bashrc.d/grep.bash')
-rw-r--r--bash/bashrc.d/grep.bash3
1 files changed, 2 insertions, 1 deletions
diff --git a/bash/bashrc.d/grep.bash b/bash/bashrc.d/grep.bash
index 52570ea2..be201741 100644
--- a/bash/bashrc.d/grep.bash
+++ b/bash/bashrc.d/grep.bash
@@ -6,7 +6,8 @@ fi
# Define function proper
grep() {
- local -i colors=$( {
+ local -i colors
+ colors=$( {
tput Co || tput colors
} 2>/dev/null )
if ((colors >= 8)) ; then