aboutsummaryrefslogtreecommitdiff
path: root/bin/vis
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-12-15 16:47:09 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-12-15 16:47:09 +1300
commitb9ba70ad0be202862ba7c10970f463fcbe90b2a6 (patch)
treee23c67afd441665428560284b335b4c9c63a4ffd /bin/vis
parentShortcut to wrap a line in a function (diff)
downloaddotfiles-b9ba70ad0be202862ba7c10970f463fcbe90b2a6.tar.gz
dotfiles-b9ba70ad0be202862ba7c10970f463fcbe90b2a6.zip
New array append syntax for binscripts
Diffstat (limited to 'bin/vis')
-rwxr-xr-xbin/vis4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/vis b/bin/vis
index efeb6b44..a2114c5d 100755
--- a/bin/vis
+++ b/bin/vis
@@ -32,7 +32,7 @@ for arg ; do
;;
-*)
shift
- opts=("${opts[@]}" "$arg")
+ opts[${#opts[@]}]=$arg
;;
*)
break
@@ -61,7 +61,7 @@ files=("${@/#/$vispath/}")
declare -a creations
for file in "${files[@]}" ; do
[[ -e $file ]] && continue
- creations=("${creations[@]}" "$file")
+ creations[${#creations[@]}]=$file
done
# Run the editor; if EDITOR isn't set, use vi(1)