dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 511612b8f3e0fb380c5d1ea4f87addb6cf65a3a0
parent 497089d81550eb1450e14391d4d20b966620597c
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue, 29 Oct 2019 13:03:20 +0100

Allow opening more than one file with o()

Diffstat:
M.profile | 4+++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/.profile b/.profile @@ -58,7 +58,9 @@ h() { o() { [ "$(uname)" = 'Darwin' ] && open="open" || open="xdg-open" if [ "$#" -gt 0 ] && [ -f "$1" ]; then - $open "$1" + for f in $*; do + $open "$f" + done else target="$(find "${1:-.}" | fzy -l 25)" if [ -f "$target" ]; then