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

12345678910111213141516171819202122232425262728
  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. -exports- = [&]
  9. {
  10. use theme
  11. use completers
  12. use github.com/xiaq/edit.elv/smart-matcher
  13. use stack
  14. -exports- = (module:exported $stack:)
  15. smart-matcher:apply
  16. util:add-before-readline {
  17. util:set-title (tilde-abbr $pwd) >/dev/tty
  18. }
  19. util:add-after-readline [a]{
  20. if (eq $a '') { print "\r" >/dev/tty; ls >/dev/tty }
  21. util:set-title (splits ' ' $a | take 1)' '(tilde-abbr $pwd) >/dev/tty
  22. }
  23. }
  24. set-env GPG_TTY (tty)