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 716B

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