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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user