1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00
Files
niveum/packages/scripts/vg.sh

7 lines
116 B
Bash
Raw Normal View History

2020-04-15 00:10:30 +02:00
#!/bin/sh
2020-04-09 16:56:47 +02:00
file="$(rg "$@" | fzf -0 -1 | awk -F: '{print $1}')"
2020-04-15 00:10:30 +02:00
if [ -n "$file" ]; then
${EDITOR:-vim} "$file"
2020-04-09 16:56:47 +02:00
fi