You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

rc.elv 739B

12345678910111213141516171819202122232425262728293031323334
  1. use epm
  2. use util
  3. use config
  4. use module
  5. fn ls [@a]{ exa --group-directories-first -s Name $@a }
  6. fn cat [@a]{ bat $@a }
  7. fn xqt [a]{ e $E:XBPS_DISTDIR/srcpkgs/$a/template }
  8. fn xr [@a]{ sudo xbps-remove -R $@a }
  9. fn r [@a]{
  10. f = (mktemp)
  11. if ?(ranger --choosedir=$f $@a) { cd (e:cat $f) }
  12. rm -f $f
  13. }
  14. -exports- = [&]
  15. {
  16. use theme
  17. use completers
  18. use github.com/xiaq/edit.elv/smart-matcher
  19. use stack
  20. -exports- = (module:exported $stack:)
  21. smart-matcher:apply
  22. util:add-before-readline {
  23. util:set-title (tilde-abbr $pwd) >/dev/tty
  24. }
  25. util:add-after-readline [a]{
  26. if (eq $a '') { print "\r" >/dev/tty; ls >/dev/tty }
  27. util:set-title (splits ' ' $a | take 1)' '(tilde-abbr $pwd) >/dev/tty
  28. }
  29. }
  30. set-env GPG_TTY (tty)