feat(fish): function to copy the global rules to current directory

This commit is contained in:
Sergio Laín 2024-01-07 19:18:24 +01:00
parent fa6ec57b7d
commit 2d5c2ecc36
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -0,0 +1,9 @@
function rules
set currentDirectory (pwd)
set selectedRule (fd -I --hidden --type f . ~/.config/nvim/rules/ | fzf --preview "bat {}")
if test -n "$selectedRule"
cp $selectedRule $currentDirectory
echo "'$selectedRule' copied"
end
end