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

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