clear-vim-trash script

This commit is contained in:
Anish Lakhwara 2023-05-23 21:28:49 +10:00
parent 4dc773f2ce
commit 52c76af334
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
working_directory=$(pwd)
vim_directory="${working_directory//\//%}.vim"
trash "$HOME/.local/share/nvim/sessions/${vim_directory}"

View file

@ -73,6 +73,7 @@
echo "" \ | fzf --phony --preview-window="up:90%" --print-query --preview "jq --color-output -r {q} $input"
'')
(pkgs.writeScriptBin "clear-vim-trash" (builtins.readFile ./bin/clear-vim-trash.sh))
(pkgs.writeScriptBin "flakify" ''
#!/usr/bin/env zsh
if [ ! -e flake.nix ]; then