Sfoglia il codice sorgente

Update user scripts

master
Arun Prakash Jana 6 anni fa
parent
commit
b958fd0015
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: A75979F35C080412
2 ha cambiato i file con 17 aggiunte e 1 eliminazioni
  1. +12
    -0
      scripts/user-scripts/edit.sh
  2. +5
    -1
      scripts/user-scripts/fzy.sh

+ 12
- 0
scripts/user-scripts/edit.sh Vedi File

@@ -0,0 +1,12 @@
#!/usr/bin/env sh

# Description: Fuzzy find a file in directory subtree with fzy and edit in vim
#
# Shell: generic
# Author: Arun Prakash Jana

# bash, zsh
vim $(find -type f | fzy)

# fish
# vim (find -type f | fzy)

+ 5
- 1
scripts/user-scripts/fzy.sh Vedi File

@@ -1,8 +1,12 @@
#!/usr/bin/env sh #!/usr/bin/env sh


# Description: Fuzzy find files in directory subtree with fzy and open using xdg-open
# Description: Fuzzy find a file in directory subtree with fzy and open using xdg-open
# #
# Shell: generic # Shell: generic
# Author: Arun Prakash Jana # Author: Arun Prakash Jana


# bash, zsh
xdg-open $(find -type f | fzy) >/dev/null 2>&1 xdg-open $(find -type f | fzy) >/dev/null 2>&1

# fish
# xdg-open (find -type f | fzy) >/dev/null 2>&1

Loading…
Annulla
Salva