dots-of-war/files/scripts/conf

6 lines
238 B
Text
Raw Normal View History

2020-05-13 08:47:11 +00:00
#!/bin/bash
selected=$(cat /home/leon/scripts/bookmarks/config_files | awk '{print $1}' | fzf)
test "$selected" = "" && exit 1
file=$(grep "$selected" /home/leon/scripts/bookmarks/config_files | sed -r 's/^\w*\s+(.*)$/\1/g')
nvim "$file"