aboutsummaryrefslogtreecommitdiff
path: root/sh/profile.d/options.sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-25 14:03:40 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-25 14:03:40 +1200
commite78cbe6f466a32be90f81b17fae093db8efca890 (patch)
tree97052fc362b25eff4fdb1d464d34072eb9bdc018 /sh/profile.d/options.sh
parentAdd TIMEFORMAT (diff)
downloaddotfiles-e78cbe6f466a32be90f81b17fae093db8efca890.tar.gz
dotfiles-e78cbe6f466a32be90f81b17fae093db8efca890.zip
Remove unneeded { } around options() func
I'm learning a lot from izabera today
Diffstat (limited to 'sh/profile.d/options.sh')
-rw-r--r--sh/profile.d/options.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/sh/profile.d/options.sh b/sh/profile.d/options.sh
index 4dadf5c3..74aa7cd9 100644
--- a/sh/profile.d/options.sh
+++ b/sh/profile.d/options.sh
@@ -1,7 +1,7 @@
# Cache the options available to certain programs. Run all this in a subshell
# (none of its state needs to endure in the session)
(
-options() { (
+options() (
# Check or create the directory to cache the options
dir=$HOME/.cache/$1
@@ -25,7 +25,7 @@ options() { (
grep -q -- '[^[:alnum:]]--'"$opt"'[^[:alnum:]]' help &&
touch -- "$opt"
done
-) ; }
+)
# Cache options for bc(1)
options bc \