1
0
mirror of https://github.com/kmein/niveum synced 2026-03-20 20:01:08 +01:00

feat(script): wrapper function

This commit is contained in:
Kierán Meinhardt
2020-04-15 00:10:30 +02:00
parent 4b5f5442f7
commit 99d11d94b9
7 changed files with 58 additions and 64 deletions

View File

@@ -1,7 +1,6 @@
#!/usr/bin/env bash
#!/bin/sh
file="$(rg "$@" | fzf -0 -1 | awk -F: '{print $1}')"
if [[ -n $file ]]
then
${EDITOR:-vim} "$file"
if [ -n "$file" ]; then
${EDITOR:-vim} "$file"
fi