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 2339bda7889f79246eda644cce906f06576d7377
parent 64f5876ffec5913f2ee33361814303863de6dbc0
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Thu,  3 Oct 2019 12:12:43 +0200

Allow search path argument to o()

Diffstat:
M.config/sh/commands | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.config/sh/commands b/.config/sh/commands @@ -34,7 +34,7 @@ o() { if [ "$#" -gt 0 ] && [ -f "$1" ]; then $open "$1" else - target="$(find . | fzy -l 25)" + target="$(find "${1:-.}" | fzy -l 25)" if [ -f "$target" ]; then $open "$target" elif [ -d "$target" ]; then